summaryrefslogtreecommitdiffstats
path: root/src/config/util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/util.rs')
-rw-r--r--src/config/util.rs17
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}}
+
+ "#))
+}
+