/env-example

Create .env.example from a .env file

Primary LanguageGoMIT LicenseMIT

env-example

Create a .env.example file by removing values from a .env file.

Install

go install github.com/chronark/env-example

Or choose a binary from the releases.

Usage

example-env -in=path/to/.env -out=.env.example

Omiting in and out defaults to .env and .env.example

Example

.env

# Comment
HELLO=World

# Empty value
NO_VALUE=

Will become:

# Comment
HELLO=

# Empty value
NO_VALUE=