tokenectomy 1.3.3

Cut 95% of useless framework noise and token bloat from error logs before feeding them to AI coding agents (Claude, Cursor, Cline)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use colored::*;

pub fn print_explanation(explanation: &str, no_color: bool) {
    if no_color {
        println!("{}", explanation);
    } else {
        if explanation.to_lowercase().contains("solution") {
            println!("{}", explanation.green());
        } else {
            println!("{}", explanation.blue());
        }
    }
}