feat: allow configuration via env vars
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ tokio = { version = "1.36.0", features = ["full"] }
|
||||
tokio-util = "0.7.8"
|
||||
ratatui = { version = "0.28.0", features = ["all-widgets"] }
|
||||
urlencoding = "2.1.2"
|
||||
clap = { version = "4.5.20", features = ["derive", "cargo"] }
|
||||
clap = { version = "4.5.20", features = ["derive", "cargo", "env"] }
|
||||
clap_complete = "4.5.33"
|
||||
itertools = "0.13.0"
|
||||
ctrlc = "3.4.5"
|
||||
|
||||
+7
-1
@@ -71,10 +71,16 @@ struct Cli {
|
||||
long,
|
||||
global = true,
|
||||
value_parser,
|
||||
env = "MANAGARR_CONFIG_FILE",
|
||||
help = "The Managarr configuration file to use"
|
||||
)]
|
||||
config: Option<PathBuf>,
|
||||
#[arg(long, global = true, help = "Disable the terminal size checks")]
|
||||
#[arg(
|
||||
long,
|
||||
global = true,
|
||||
env = "MANAGARR_DISABLE_TERMINAL_SIZE_CHECKS",
|
||||
help = "Disable the terminal size checks"
|
||||
)]
|
||||
disable_terminal_size_checks: bool,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user