bctx-weave 0.1.29

bctx-weave — FilterMesh lens pipeline, CLI interception, domain compression
Documentation
1
2
3
4
5
6
7
8
9
use super::savings::SavesReport;

pub fn render_output(content: &str, report: &SavesReport, show_savings: bool) -> String {
    if show_savings && report.tokens_saved() > 0 {
        format!("{}{}", content, report.render_inline())
    } else {
        content.to_string()
    }
}