Skip to main content

classify

Function classify 

Source
pub fn classify(command: &str, user_excluded: &[String]) -> OutputPolicy
Expand description

Classify a command into an OutputPolicy.

user_excluded comes from Config::excluded_commands. This function consolidates:

  • is_excluded_command (compress.rs BUILTIN_PASSTHROUGH)
  • is_verbatim_output (compress.rs 22+ is_* helpers)
  • is_passthrough_command (patterns/mod.rs)