Skip to content

🌿 Create persistent env variables easily and quickly for testing locally.

License

Notifications You must be signed in to change notification settings

PaulRosset/var-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

var-env Logo

Create persistent env variables easily and quickly for testing locally.

Travis CI Build Status Go Report Card MIT Licence

Install

go get github.com/PaulRosset/var-env/cmd/varenv

Usage

$ varenv
   varenv - Create persistent env variables easily and quickly for testing locally.

USAGE:
   cli [global options] command [command options] [arguments...]

VERSION:
   1.0.0

COMMANDS:
     load        The yaml file where the variables live in, from `FILE`
     list, l     List all the persistent environment variables on your computer.
     add, a      Quick commands to add an env variables through the cli interface
     remove, rm  Quick commands to remove an env variables through the cli interface
     help, h     Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help
   --version, -v  print the version

You can either load a yaml file of the following format:

[NAME_VAR]: [value]

Example:

ENV: prod
TOKEN_API: azeqcvhqsd677T4aze

Then: varenv load ./path/of/the/yaml/file

or either load manually the variables with the add command, like the following:

varenv add ENV=PROD TOKEN_API=azeqcvhqsd677T4aze

Finally, if you want the change effective on your current shell, you need to do the following in order to refresh: source ~/.bashrc

License

MIT Paul Rosset

About

🌿 Create persistent env variables easily and quickly for testing locally.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages