Skip to content

classifyCommand

classifyCommand(command, normalize): CommandClassification | null

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/shell/arity.ts:320

Classify a command into a stable allow-list prefix + display pattern, or null when it cannot be safely classified for matching (composition/redirection/substitution present, empty, or unbalanced quotes).

string

Raw command string as the model proposed it.

(cmd) => string

Normalizer to apply for the detection form (inject normalizeCommand).

CommandClassification | null