https://github.com/shua/launchwith
use env vars in your app, yaml config when you want
https://github.com/shua/launchwith
configuration environment-variables yaml
Last synced: 3 months ago
JSON representation
use env vars in your app, yaml config when you want
- Host: GitHub
- URL: https://github.com/shua/launchwith
- Owner: shua
- Created: 2021-10-27T19:24:44.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-27T19:25:09.000Z (over 4 years ago)
- Last Synced: 2024-06-20T21:01:51.893Z (about 2 years ago)
- Topics: configuration, environment-variables, yaml
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `launchwith`
run CMD ARGS... with environment variables set from yaml CONFIG
usage: launchwith [-expand] CONFIG CMD ARGS...
-expand : expand $SHELL_VARS in yaml string values
# motivation
Already made the app to read config exclusively from the env.
Other teams would like to use yaml files to configure.
Instead of pulling viper and trying to figure out precedance rules between environment (which viper doesn't really handle well), config files, flags, env-specific config files, just make that a separate step.
# prior work
I don't know, I banged this out in like an hour, there's probably something out there that already does this.