From a7668265d507a7214b312c5dce874f0185b7b09a Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Thu, 23 Jan 2020 14:04:42 +0100 Subject: Use envy to parse environment variables for Config This patch uses the envy crate to parse the environment. A variable NITROCLI_KEY can be used to overwrite the configuration for *key*. This has the side effect that the NITROCLI_NO_CACHE variable is evaluated as a boolean variable (instead of only checking whether it is set). We also accept two new variables, NITROCLI_MODEL and NITROCLI_VERBOSITY. --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c22351..0915774 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ Unreleased - Added support for configuration files - Added `toml` dependency in version `0.5.6` - Added `serde` dependency in version `1.0.114` + - Added `envy` dependency in version `0.4.2` + - Added `merge` dependency in version `0.1.0` 0.3.4 @@ -10,6 +12,11 @@ Unreleased - Changed default OTP format from `hex` to `base32` - Improved error reporting format and fidelity - Added `anyhow` dependency in version `1.0.32` +- Reworked environment variables: + - Added the `NITROCLI_MODEL` and `NITROCLI_VERBOSITY` variables that + set the defaults for the `--model` and `--verbose` options + - Changed the handling of the `NITROCLI_NO_CACHE` variable to check + the value of the variable instead of only the presence - Updated minimum required Rust version to `1.42.0` - Bumped `nitrokey` dependency to `0.7.1` - Bumped `proc-macro2` dependency to `1.0.19` -- cgit v1.2.1