pub struct Cli {Show 67 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 paths_file: 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: usizeMaximum 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>Include files matching PATTERN. Use ** when you want recursion across directories.
paths_file: Vec<String>Read selected scan paths from FILE (or ‘-’ for stdin), relative to the explicit scan root.
cache_dir: Option<String>§cache_clear: bool§incremental: bool§max_in_memory: MemoryModeMaximum 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: boolCollect file information such as checksums, type hints, and source/script flags.
from_json: boolLoad one or more existing ScanCode-style JSON scans instead of rescanning inputs.
package: boolScan input for application package and dependency manifests, lockfiles and related data
system_package: boolScan input for installed system package databases (RPM, dpkg, apk, etc.)
package_in_compiled: boolScan supported compiled Go and Rust binaries for embedded package metadata.
package_only: boolScan for system and application package data and skip license/copyright detection and top-level package creation.
no_assemble: boolDisable 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: boolForce rebuild of the license index cache, ignoring any existing cache.
no_license_index_cache: boolBuild the license index in memory for this run without reading or writing persistent cache files.
license_text: boolInclude 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_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: boolScan input for licenses
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.
show_attribution: boolShow attribution notices for embedded license detection data
export_license_dataset: Option<String>Export the effective built-in license dataset to DIR and exit.
Implementations§
Source§impl Cli
impl Cli
pub fn output_targets(&self) -> Vec<OutputTarget>
pub fn output_header_options(&self) -> JsonMap<String, JsonValue>
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> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.