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:
+1
-1
@@ -38,7 +38,7 @@ tokio = { version = "1.36.0", features = ["full"] }
|
|||||||
tokio-util = "0.7.8"
|
tokio-util = "0.7.8"
|
||||||
ratatui = { version = "0.28.0", features = ["all-widgets"] }
|
ratatui = { version = "0.28.0", features = ["all-widgets"] }
|
||||||
urlencoding = "2.1.2"
|
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"
|
clap_complete = "4.5.33"
|
||||||
itertools = "0.13.0"
|
itertools = "0.13.0"
|
||||||
ctrlc = "3.4.5"
|
ctrlc = "3.4.5"
|
||||||
|
|||||||
+7
-1
@@ -71,10 +71,16 @@ struct Cli {
|
|||||||
long,
|
long,
|
||||||
global = true,
|
global = true,
|
||||||
value_parser,
|
value_parser,
|
||||||
|
env = "MANAGARR_CONFIG_FILE",
|
||||||
help = "The Managarr configuration file to use"
|
help = "The Managarr configuration file to use"
|
||||||
)]
|
)]
|
||||||
config: Option<PathBuf>,
|
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,
|
disable_terminal_size_checks: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user