Skip to main content

statusline_template

Function statusline_template 

Source
pub fn statusline_template(
    report: &Report,
    plan_id: &str,
    tpl: &str,
    colours: bool,
    ascii: bool,
    bar_width: usize,
) -> String
Expand description

arkuse’s statusline: cmduse’s {key} template engine (report_render::render_template) resolved against this report’s own placeholders.

Placeholders (case-insensitive): {plan} {tier} {period} tier id / period label {month} {month_pct} {month_bar} {five_hour} {five_hour_pct} {five_hour_bar} (aliases {5h} {5h_pct} {5h_bar}) {weekly} {weekly_pct} {weekly_bar} (aliases {wk} {wk_pct} {wk_bar}) {yuan} {yuan_month} this store’s AFP in yuan {models} top model by period AFP