feat: allow configuration via env vars

This commit is contained in:
tangowithfoxtrot
2024-11-03 11:20:15 -08:00
parent c1da8592b4
commit 9326428141
2 changed files with 8 additions and 2 deletions
+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,
}