#env #git #dist #pull #env-var #running #file

app envpopulate

If you have a .env.dist file committed in GIT and after a recent git pull it has been changed, so now you need to add those new env-variables to your own .env. This should be as easy as running envpopulate.

1 unstable release

0.1.0 Jan 27, 2019

#8 in #dist

MIT license

5KB
64 lines

Diff and populate your .env file from .env.dist automatically.

Usage

If you have a .env.dist file committed in GIT and after a recent git pull it has been changed, so now you need to add those new env-variables to your own .env.
This should be as easy as running envpopulate.

Upon running it, you will be asked if you want to enter custom values for every variable, if you don't want any interactivity then you need to include --quiet option.

Building

This utility is written in Rust so that you could get a small binary executable that doesn't require any additional dependencies like an interpreter or a VM and it could be easily bundled in a docker container.

In order from simplest to hardest:

  • download already-built binaries from the Releases link up in the top of this repo's page
  • install using Cargo: cargo install envpopulate
  • checkout this repo using GIT and build with cargo build

Dependencies

~12KB