Skip to main content

create_output_options

Function create_output_options 

Source
pub fn create_output_options(
    format: Format,
    no_color: bool,
    verbose: bool,
) -> OutputOptions
Expand description

Creates output options from CLI parameters.

Constructs an OutputOptions struct from the CLI format, color, and verbosity settings.

§Arguments

  • format - Output format (text, json, yaml, sarif)
  • no_color - Whether to disable colored output
  • verbose - Whether to enable verbose output

§Returns

An OutputOptions struct configured with the given settings.