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. Precedence:

  1. is_passthrough (BUILTIN_PASSTHROUGH + dev-script runners + user excludes)
  2. compress::is_verbatim_output (HTTP clients, file viewers, data formats …)
  3. otherwise Compressible