run cmd with envs
Download the package and put in any $PATH folder.
# touch test.sh
$ echo -e "echo \$HELLO\necho \$WORLD" > test.sh
$ HELLO=test WORLD=bar bash test.sh
# output:
# test
# barenr will load file .env in pwd folder as envs. You can see .env.example
# touch test.sh
$ echo -e "echo \$HELLO\necho \$WORLD" > test.sh
# touch a env folder with our envs
$ echo -e "HELLO=test\nWORLD=bar" > .env
# run cmd start with `enr`
$ enr bash test.sh
# output:
# test
# bar$ enr -c="yourCustomConfig" bash test.shMIT © zcong1993