envexample

command module
v0.0.0-...-bc6d252 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2019 License: MIT Imports: 7 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL