bkeepers/dotenv — pull request #84 by ColbyAley (2013-12-27 22:03:15+00:00)
Title: Adding the ability to copy keys from .env to .env.example

Often with open source, .env files are simply kept in the .gitignore. This is great until someone else comes along and tries to setup their own .env. The solution is often to create a .env.example file, that contains the environment variable keys, but not their values. This is often somewhat hard to keep up to date.

This PR adds a command to create a .env.example file based on the keys from your .env. It can be used by running `dotenv example:load` in your repo. This way, you can safely keep your sensitive keys from your .env in your .gitignore, and easily update your .env.example.

Right now I have added the logic for this to bin/dotenv. If anyone has an idea for a better place to put it, I'm all ears.