1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-12-02 01:24:06 +03:00

fix(config): update the environment variable parsing settings

This commit is contained in:
orhun 2021-07-09 22:39:19 +03:00
parent 8975c8fb41
commit 9984abfe04
No known key found for this signature in database
GPG Key ID: B928720AEC532117

View File

@ -61,7 +61,7 @@ impl Config {
let mut config = config::Config::default();
config
.merge(config::File::with_name(&file_name))?
.merge(config::Environment::with_prefix(env!("CARGO_PKG_NAME")))?;
.merge(config::Environment::with_prefix("CLIFF").separator("_"))?;
Ok(config.try_into()?)
}
}