Skip to content
Open
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
4 changes: 3 additions & 1 deletion src/discover/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,9 @@ const IGNORED_PREFIXES: &[&str] = &[
"case ",
];

const IGNORED_EXACT: &[&str] = &["cd", "echo", "true", "false", "wait", "pwd", "bash", "sh", "fi", "done"];
const IGNORED_EXACT: &[&str] = &[
"cd", "echo", "true", "false", "wait", "pwd", "bash", "sh", "fi", "done",
];

lazy_static! {
static ref REGEX_SET: RegexSet = RegexSet::new(PATTERNS).expect("invalid regex patterns");
Expand Down
3 changes: 1 addition & 2 deletions src/go_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,7 @@ fn filter_go_test_json(output: &str) -> String {
// Handle build-output/build-fail events (use ImportPath, no Package)
match event.action.as_str() {
"build-output" => {
if let (Some(import_path), Some(output_text)) =
(&event.import_path, &event.output)
if let (Some(import_path), Some(output_text)) = (&event.import_path, &event.output)
{
let text = output_text.trim_end().to_string();
if !text.is_empty() {
Expand Down
6 changes: 4 additions & 2 deletions src/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}

Expand Down Expand Up @@ -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(())
}

Expand Down