Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ mod tree;
mod tsc_cmd;
mod utils;
mod vitest_cmd;
mod wc_cmd;
mod wget_cmd;

use anyhow::{Context, Result};
Expand Down Expand Up @@ -295,6 +296,13 @@ enum Commands {
args: Vec<String>,
},

/// Word/line/byte count with compact output (strips paths and padding)
Wc {
/// Arguments passed to wc (files, flags like -l, -w, -c)
#[arg(trailing_var_arg = true, allow_hyphen_values = true)]
args: Vec<String>,
},

/// Show token savings summary and history
Gain {
/// Show ASCII graph of daily savings
Expand Down Expand Up @@ -1085,6 +1093,10 @@ fn main() -> Result<()> {
}
}

Commands::Wc { args } => {
wc_cmd::run(&args, cli.verbose)?;
}

Commands::Gain {
graph,
history,
Expand Down
Loading
Loading