Open jpmckinney opened 1 year ago
For evaluating which config crate, we have started but not finished https://github.com/rosetta-rs/config-rosetta-rs to compare them. We plan to talk further about them in the WG-CLI meetings
For general layered config, clap's env support is unlikely sufficient. As for layered configs and clap, the most relevant link is https://github.com/clap-rs/clap/discussions/2763.
Going through the TODO on the page:
https://docs.rs/config/latest/config/ seems to be the most popular crate.
clap has an env method/feature that allows setting an environment variable to read from if the CLI argument isn't present
To throw in configuration files, there's an open issue: https://github.com/clap-rs/clap/issues/748 There are also various (less popular) crates that integrate with clap by third-party authors.
configure hasn't had a release in 5 years. I don't think it's relevant anymore.