Skip to main content

Cli

Struct Cli 

Source
pub struct Cli {
Show 66 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_debian: Option<String>, pub output_html: 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: ProcessMode, 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 incremental: bool, pub max_in_memory: MemoryMode, pub info: bool, pub from_json: bool, pub package: bool, pub system_package: bool, pub package_in_compiled: bool, pub package_only: bool, pub no_assemble: bool, pub license_dataset_path: Option<String>, pub reindex: bool, pub no_license_index_cache: bool, pub license_text: bool, pub license_text_diagnostics: bool, pub license_diagnostics: bool, pub unknown_licenses: bool, pub license_score: u8, pub license_url_template: String, pub filter_clues: bool, pub ignore_author: Vec<String>, pub ignore_copyright_holder: Vec<String>, pub only_findings: bool, pub mark_source: bool, pub classify: bool, pub summary: bool, pub license_clarity_score: bool, pub license_references: bool, pub license_policy: Option<String>, pub tallies: bool, pub tallies_key_files: bool, pub tallies_with_details: bool, pub facet: Vec<String>, pub tallies_by_facet: bool, pub generated: bool, pub license: bool, pub copyright: bool, pub email: bool, pub max_email: usize, pub url: bool, pub max_url: usize, pub show_attribution: bool, pub export_license_dataset: Option<String>,
}

Fields§

§dir_path: Vec<String>

File or directory paths 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_debian: Option<String>

Write scan output in machine-readable Debian copyright format to FILE (requires –license, –copyright, and –license-text)

§output_html: Option<String>

Write scan output as HTML report 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: usize

Maximum recursion depth (0 means no depth limit)

§processes: ProcessMode§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§incremental: bool§max_in_memory: MemoryMode

Maximum number of file and directory scan details kept in memory. Use 0 for unlimited memory or -1 for disk-only spill during the scan.

§info: bool

Collect file information such as checksums, type hints, and source/script flags.

§from_json: bool

Load one or more existing ScanCode-style JSON scans instead of rescanning inputs.

§package: bool

Scan input for application package and dependency manifests, lockfiles and related data

§system_package: bool

Scan input for installed system package databases (RPM, dpkg, apk, etc.)

§package_in_compiled: bool

Scan supported compiled Go and Rust binaries for embedded package metadata.

§package_only: bool

Scan for system and application package data and skip license/copyright detection and top-level package creation.

§no_assemble: bool

Disable package assembly (merging related manifest/lockfiles into packages)

§license_dataset_path: Option<String>

Path to a custom license dataset root containing manifest.json, rules/, and licenses/. If not specified, uses the built-in embedded license index.

§reindex: bool

Force rebuild of the license index cache, ignoring any existing cache.

§no_license_index_cache: bool

Build the license index in memory for this run without reading or writing persistent cache files.

§license_text: bool

Include matched text in license detection output

§license_text_diagnostics: bool§license_diagnostics: bool§unknown_licenses: bool§license_score: u8§license_url_template: String§filter_clues: bool§ignore_author: Vec<String>§ignore_copyright_holder: Vec<String>§only_findings: bool§mark_source: bool§classify: bool§summary: bool§license_clarity_score: bool§license_references: bool§license_policy: Option<String>

Evaluate file license detections against a YAML license policy file.

§tallies: bool§tallies_key_files: bool§tallies_with_details: bool§facet: Vec<String>§tallies_by_facet: bool§generated: bool§license: bool

Scan input for licenses

§copyright: bool§email: bool

Scan input for email addresses

§max_email: usize

Report only up to INT emails found in a file. Use 0 for no limit.

§url: bool

Scan input for URLs

§max_url: usize

Report only up to INT URLs found in a file. Use 0 for no limit.

§show_attribution: bool

Show attribution notices for embedded license detection data

§export_license_dataset: Option<String>

Export the effective built-in license dataset to DIR and exit.

Implementations§

Trait Implementations§

Source§

impl Args for Cli

Source§

fn group_id() -> Option<Id>

Report the ArgGroup::id for this set of arguments
Source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

impl CommandFactory for Cli

Source§

fn command<'b>() -> Command

Build a Command that can instantiate Self. Read more
Source§

fn command_for_update<'b>() -> Command

Build a Command that can update self. Read more
Source§

impl Debug for Cli

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for Cli

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Parser for Cli

Source§

fn parse() -> Self

Parse from std::env::args_os(), exit on error.
Source§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
Source§

fn parse_from<I, T>(itr: I) -> Self
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, exit on error.
Source§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
Source§

fn update_from<I, T>(&mut self, itr: I)
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, exit on error. Read more
Source§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> LayoutRaw for T

Source§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Returns the layout of the type.
Source§

impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
where T: SharedNiching<N1, N2>, N1: Niching<T>, N2: Niching<T>,

Source§

unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool

Returns whether the given value has been niched. Read more
Source§

fn resolve_niched(out: Place<NichedOption<T, N1>>)

Writes data to out indicating that a T is niched.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The metadata type for pointers and references to this type.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToAst for T

Source§

fn ast(self, begin: usize, end: usize) -> Spanned<Self>

Source§

impl<U, T> ToOwnedObj<U> for T
where U: FromObjRef<T>,

Source§

fn to_owned_obj(&self, data: FontData<'_>) -> U

Convert this type into T, using the provided data to resolve any offsets.
Source§

impl<U, T> ToOwnedTable<U> for T
where U: FromTableRef<T>,

Source§

fn to_owned_table(&self) -> U

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.