Skip to main content

categorize_command

Function categorize_command 

Source
pub fn categorize_command(cmd: &str) -> CommandCategory
Expand description

Categorize a single shell command and return category + normalized pattern.

The normalized pattern is the base command + subcommand (e.g. “cargo test”, “npm run build”).