m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-17 17:43:37 -05:00

Add debug option to CLI

This commit is contained in:
Sergio
2024-12-05 18:13:53 +02:00
parent 59894343de
commit 178acfb2f6
6 changed files with 54 additions and 13 deletions

View File

@@ -18,6 +18,7 @@ pub struct Config {
pub theme: Theme,
pub insecure_registries: Vec<String>,
pub socket: Option<String>,
pub debug: bool,
}
impl Config {
@@ -29,6 +30,7 @@ impl Config {
theme: Theme::Default,
insecure_registries: Vec::with_capacity(0),
socket: None,
debug: false,
}
}
/// Reads the config from the file path provided and returns the parsed result.
@@ -125,6 +127,7 @@ impl Config {
theme,
insecure_registries,
socket,
debug: false,
}
}
}