Skip to main content

classify

Function classify 

Source
pub fn classify(
    base_command: &Word,
    words: &[Word],
    kb: &KnowledgeBase,
) -> CommandInfo
Expand description

Classify a command using the knowledge base.

Takes the base command name and the full word list (including the command itself). Returns a CommandInfo describing the command’s effect, subcommand, escalation flags, affected paths, and env gates.