Merge pull request #467 from gl-yziquel/yziquel

Enabling HIMALAYA_CONFIG to locate configuration file.
This commit is contained in:
Clément DOUIN 2024-05-27 09:27:29 +02:00 committed by GitHub
commit f1371f42e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,7 @@ pgp-native = ["email-lib/pgp-native", "mml-lib/pgp-native", "pgp"]
[dependencies]
ariadne = "0.2"
async-trait = "0.1"
clap = { version = "4.4", features = ["derive", "wrap_help"] }
clap = { version = "4.4", features = ["derive", "wrap_help", "env"] }
clap_complete = "4.4"
clap_mangen = "0.2"
color-eyre = "0.6.3"

View file

@ -33,7 +33,7 @@ pub struct Cli {
/// configuration file. Other paths are merged with the first one,
/// which allows you to separate your public config from your
/// private(s) one(s).
#[arg(short, long = "config", global = true)]
#[arg(short, long = "config", global = true, env = "HIMALAYA_CONFIG")]
#[arg(value_name = "PATH", value_parser = config::path_parser)]
pub config_paths: Vec<PathBuf>,