mirror of
https://github.com/soywod/himalaya.git
synced 2024-09-28 20:21:13 +00:00
Using HIMALAYA_CONFIG as a way to provide himalaya configuration file from environment.
This commit is contained in:
parent
7a951b4830
commit
1b35da2d07
|
@ -48,7 +48,7 @@ pgp-native = ["email-lib/pgp-native", "mml-lib/pgp-native", "pgp"]
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ariadne = "0.2"
|
ariadne = "0.2"
|
||||||
async-trait = "0.1"
|
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_complete = "4.4"
|
||||||
clap_mangen = "0.2"
|
clap_mangen = "0.2"
|
||||||
color-eyre = "0.6.3"
|
color-eyre = "0.6.3"
|
||||||
|
|
|
@ -33,7 +33,7 @@ pub struct Cli {
|
||||||
/// configuration file. Other paths are merged with the first one,
|
/// configuration file. Other paths are merged with the first one,
|
||||||
/// which allows you to separate your public config from your
|
/// which allows you to separate your public config from your
|
||||||
/// private(s) one(s).
|
/// 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)]
|
#[arg(value_name = "PATH", value_parser = config::path_parser)]
|
||||||
pub config_paths: Vec<PathBuf>,
|
pub config_paths: Vec<PathBuf>,
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue