Merge pull request #9 from tangowithfoxtrot/add-env-var-config-options

Add environment variables for --config and terminal size check args
This commit is contained in:
Alex Clarke
2024-11-03 14:43:50 -07:00
committed by GitHub
2 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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,
}