cargo-semver-checks icon indicating copy to clipboard operation
cargo-semver-checks copied to clipboard

Support [term] configuration in Cargo config.toml for color and logging

Open suaviloquence opened this issue 10 months ago • 3 comments

Describe your use case

According to the config linked by obi1kenobi here, the base cargo tool supports configuring color and logging in the [term] section of ~~Cargo.toml~~ config.toml. As an extension to cargo, it makes sense to allow these values to configure cargo-semver-checks as well, if set.

Describe the solution you'd like

cargo-semver-checks reads the configuration from the [term] section of config.toml to configure color and logging level if they are set. We would have to set precedence rules between this, env vars like CARGO_TERM_COLOR and CARGO_TERM_QUIET, and config flags like --color and --verbose, and it would make sense to follow the same rules that cargo does.

Alternatives, if applicable

No response

Additional Context

I can work on implementing this if it seems like something we want.

suaviloquence avatar Apr 11 '24 02:04 suaviloquence