Accept IDCOOP_CONFIG and IDCOOP_SECRETS to configure path of config/secrets file
This commit is contained in:
parent
38848ad8d5
commit
cee16de4d1
@ -15,7 +15,7 @@ axum-client-ip = "0.4.0"
|
||||
base64 = "0.21.5"
|
||||
blake2 = "0.10.6"
|
||||
chrono = "0.4.31"
|
||||
clap = { version = "4.4.6", features = ["derive"] }
|
||||
clap = { version = "4.4.6", features = ["derive", "env"] }
|
||||
comfy-table = "7.1.0"
|
||||
confique = { version = "0.2.4", features = ["toml"], default-features = false }
|
||||
eyre = "0.6.8"
|
||||
|
@ -19,10 +19,10 @@ use tracing_subscriber::util::SubscriberInitExt;
|
||||
#[command(version = env!("CARGO_PKG_VERSION"), author = env!("CARGO_PKG_AUTHORS"), about = env!("CARGO_PKG_DESCRIPTION"))]
|
||||
struct Options {
|
||||
/// Path to a config file in TOML format. Can be specified multiple times. Optional (all options can also be specified in env vars).
|
||||
#[clap(short = 'c', long = "config")]
|
||||
#[clap(short = 'c', long = "config", env = "IDCOOP_CONFIG")]
|
||||
config_files: Vec<PathBuf>,
|
||||
|
||||
#[clap(short = 'S', long = "secrets")]
|
||||
#[clap(short = 'S', long = "secrets", env = "IDCOOP_SECRETS")]
|
||||
secret_files: Vec<PathBuf>,
|
||||
|
||||
#[clap(subcommand)]
|
||||
|
Loading…
Reference in New Issue
Block a user