diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-11-10 08:18:19 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-11-10 08:26:33 +0100 |
commit | 9d72601e57eeb821314b6188e60817137baf223d (patch) | |
tree | 41b1420d61860b4c4bf5946e557e7a25bfa54ab6 /src/config/util.rs | |
parent | 451b417f547c9c58a66847bf472e82664c87460b (diff) |
Split configuration module in multiple files
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/config/util.rs')
-rw-r--r-- | src/config/util.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/config/util.rs b/src/config/util.rs new file mode 100644 index 0000000..8cae2d7 --- /dev/null +++ b/src/config/util.rs @@ -0,0 +1,17 @@ +pub fn default_progress_format() -> String { + String::from("[{elapsed_precise}] ({percent:>3}%): {bar:40.cyan/blue} | {msg}") +} + +pub fn default_package_print_format() -> String { + String::from(indoc::indoc!(r#" + {{i}} - {{name}} : {{version}} + Source: {{source_url}} + Hash ({{source_hash_type}}): {{source_hash}}" + {{#if print_system_deps}}System Deps: {{ system_deps }} {{/if}} + {{#if print_system_runtime_deps}}System runtime Deps: {{ system_runtime_deps }} {{/if}} + {{#if print_build_deps}}Build Deps: {{ build_deps }} {{/if}} + {{#if print_runtime_deps}}Runtime Deps: {{ runtime_deps }} {{/if}} + + "#)) +} + |