summaryrefslogtreecommitdiffstats
path: root/src/config/util.rs
blob: 60709e27a5b86fef35cfc6eb25a527a62cc53cdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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}} - {{p.name}} : {{p.version}}
            {{#each p.sources}}Source: {{this.url}} - {{this.hash.hash}} ({{this.hash.type}}){{/each}}
            {{#if print_build_deps}}Build Deps: {{ p.dependencies.build }} {{/if}}
            {{#if print_runtime_deps}}Runtime Deps: {{ p.dependencies.runtime }} {{/if}}

    "#))
}