-
Notifications
You must be signed in to change notification settings - Fork 31
Configuration loading #21
Comments
|
I've written some CLI apps that if they have many config args and are used often with variety of values, have another arg to load in JSON config containing the args and values to use. It's quite staight forward to use for anyone I pass the tools on to. I've also used Docker where images/containers use ENV vars for config, it supports having a |
I rarely do. The only time when this comes in handy is when needing to debug output of a nested dependency. Set a specific env var: get the exact debug output you're looking for. However, I really dig the concept of a It'd be neat if we could set flags from |
While most CLI applications don't load their configuration from environment variables, configuration files are pretty common. host = "127.0.0.1"
port = 8080 and passing Using feature flags, it should be pretty trivial to support different configuration formats using serde. A second step would be a feature to dump a config file using the default values in the default config path on first run (e.g. if the config file does not exist) |
In #19 (comment), @moosingin3space suggested adding configure.
The text was updated successfully, but these errors were encountered: