pub struct Cli {Show 36 fields
pub dir_path: Vec<String>,
pub output_json: Option<String>,
pub output_json_pp: Option<String>,
pub output_json_lines: Option<String>,
pub output_yaml: Option<String>,
pub output_csv: Option<String>,
pub output_html: Option<String>,
pub output_html_app: Option<String>,
pub output_spdx_tv: Option<String>,
pub output_spdx_rdf: Option<String>,
pub output_cyclonedx: Option<String>,
pub output_cyclonedx_xml: Option<String>,
pub custom_output: Option<String>,
pub custom_template: Option<String>,
pub max_depth: usize,
pub processes: i32,
pub timeout: f64,
pub quiet: bool,
pub verbose: bool,
pub strip_root: bool,
pub full_root: bool,
pub exclude: Vec<String>,
pub include: Vec<String>,
pub cache_dir: Option<String>,
pub cache_clear: bool,
pub max_in_memory: Option<usize>,
pub from_json: bool,
pub no_assemble: bool,
pub filter_clues: bool,
pub only_findings: bool,
pub mark_source: bool,
pub copyright: bool,
pub email: bool,
pub max_email: usize,
pub url: bool,
pub max_url: usize,
}Fields§
§dir_path: Vec<String>Directory path to scan
output_json: Option<String>Write scan output as compact JSON to FILE
output_json_pp: Option<String>Write scan output as pretty-printed JSON to FILE
output_json_lines: Option<String>Write scan output as JSON Lines to FILE
output_yaml: Option<String>Write scan output as YAML to FILE
output_csv: Option<String>[DEPRECATED in Python] Write scan output as CSV to FILE
output_html: Option<String>Write scan output as HTML report to FILE
output_html_app: Option<String>[DEPRECATED in Python] Write scan output as HTML app to FILE
output_spdx_tv: Option<String>Write scan output as SPDX tag/value to FILE
output_spdx_rdf: Option<String>Write scan output as SPDX RDF/XML to FILE
output_cyclonedx: Option<String>Write scan output as CycloneDX JSON to FILE
output_cyclonedx_xml: Option<String>Write scan output as CycloneDX XML to FILE
custom_output: Option<String>Write scan output to FILE formatted with the custom template
custom_template: Option<String>Use this template FILE with –custom-output
max_depth: usizeMaximum recursion depth (0 means no depth limit)
processes: i32§timeout: f64§quiet: bool§verbose: bool§strip_root: bool§full_root: bool§exclude: Vec<String>Exclude patterns (ScanCode-compatible alias: –ignore)
include: Vec<String>§cache_dir: Option<String>§cache_clear: bool§max_in_memory: Option<usize>§from_json: bool§no_assemble: boolDisable package assembly (merging related manifest/lockfiles into packages)
filter_clues: bool§only_findings: bool§mark_source: bool§copyright: bool§email: boolScan input for email addresses
max_email: usizeReport only up to INT emails found in a file. Use 0 for no limit.
url: boolScan input for URLs
max_url: usizeReport only up to INT URLs found in a file. Use 0 for no limit.
Implementations§
Source§impl Cli
impl Cli
pub fn output_targets(&self) -> Vec<OutputTarget>
Trait Implementations§
Source§impl Args for Cli
impl Args for Cli
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Cli
impl CommandFactory for Cli
Source§impl FromArgMatches for Cli
impl FromArgMatches for Cli
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Parser for Cli
impl Parser for Cli
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Cli
impl RefUnwindSafe for Cli
impl Send for Cli
impl Sync for Cli
impl Unpin for Cli
impl UnsafeUnpin for Cli
impl UnwindSafe for Cli
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more