diff options
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/mod.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs index 6d6ef8a..fbe10ff 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -19,6 +19,10 @@ pub struct NotValidatedConfiguration { #[getset(get = "pub")] repository: PathBuf, + #[serde(default = "default_progress_format")] + #[getset(get = "pub")] + progress_format: String, + #[serde(rename = "releases")] releases_directory: String, @@ -178,3 +182,6 @@ pub enum EndpointType { } +fn default_progress_format() -> String { + String::from("[{elapsed_precise}] ({percent:>3}%): {bar:40.cyan/blue} | {msg}") +} |