From e44cf827a915ca1c48453e278e019a9acd03f31d Mon Sep 17 00:00:00 2001 From: Sahil Gandhi Date: Sun, 22 Feb 2026 20:59:01 -0800 Subject: [PATCH] fix: include command name in err/test tracking labels rtk err and rtk test hardcoded their tracking labels to generic "rtk run-err" and "rtk run-test", losing the identity of the wrapped command in `rtk gain` output. Now they use the actual command (e.g., "rtk err pre-commit run --verbose") consistent with how other subcommands track themselves. --- src/runner.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/runner.rs b/src/runner.rs index 6ae6599e..afd77b80 100644 --- a/src/runner.rs +++ b/src/runner.rs @@ -58,7 +58,8 @@ pub fn run_err(command: &str, verbose: u8) -> Result<()> { } else { println!("{}", rtk); } - timer.track(command, "rtk run-err", &raw, &rtk); + let label = format!("rtk err {}", command); + timer.track(command, &label, &raw, &rtk); Ok(()) } @@ -99,7 +100,8 @@ pub fn run_test(command: &str, verbose: u8) -> Result<()> { } else { println!("{}", summary); } - timer.track(command, "rtk run-test", &raw, &summary); + let label = format!("rtk test {}", command); + timer.track(command, &label, &raw, &summary); Ok(()) }