1.1.1 • Published 8 years ago
toml-to-env v1.1.1
toml-to-env
provide a TOML configuration file
with an environment stanza, and toml-to-env will output the
appropriate export commands to configure an enviornment:
export METRICS='127.0.0.1'
export PORT=9200Use toml-to-env in a shell script like so:
#!/usr/bin/env bash
eval $(toml-to-env /path/to/config.toml)To unset an environment, do:
#!/usr/bin/env bash
eval $(toml-to-env unset /path/to/config.toml)License
ISC