A tool to make .env.example
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
main.go

README.md

envexample

A tool to make .env.example

Installation

$ go get github.com/ikedaosushi/envexample

If you want to update

$ go get -u github.com/ikedaosushi/envexample

Usage

Let's say you have a .env file following.

# This is a sample enviroment variables
FOO=BAR
HOGE=FUGAFUGA

# Second section
# SAMPLE=ENV
HELLO=WORLD
TEST=TEST

You can use

$ envexample

then, you get a .env.example following

# This is a sample enviroment variables
FOO=
HOGE=

# Second section
# SAMPLE=ENV
HELLO=
TEST=

You also can use

$ envexample .env .env.sample

or

$ envexample .myenv .myenv.sample

Option

If you use --stdout, you get .env.example result on StdOut instead of file.

$ envexample --stdout