Skip to main content

extract_software

Function extract_software 

Source
pub fn extract_software(command: &str) -> Vec<String>
Expand description

Extract external software/CLI tool names from a Bash command string.

Splits on pipes and chain operators, takes the first token of each segment, strips path prefixes, skips prefix commands (sudo, env, etc.) and shell builtins.