Skip to main content

Cli

Struct Cli 

Source
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: usize

Maximum 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: bool

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

§filter_clues: bool§only_findings: bool§mark_source: bool§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.

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> 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, U> ExactFrom<T> for U
where U: TryFrom<T>,

Source§

fn exact_from(value: T) -> U

Source§

impl<T, U> ExactInto<U> for T
where U: ExactFrom<T>,

Source§

fn exact_into(self) -> U

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, U> OverflowingInto<U> for T
where U: OverflowingFrom<T>,

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, U> RoundingInto<U> for T
where U: RoundingFrom<T>,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> SaturatingInto<U> for T
where U: SaturatingFrom<T>,

Source§

impl<T> ToDebugString for T
where T: Debug,

Source§

fn to_debug_string(&self) -> String

Returns the String produced by Ts Debug implementation.

§Examples
use malachite_base::strings::ToDebugString;

assert_eq!([1, 2, 3].to_debug_string(), "[1, 2, 3]");
assert_eq!(
    [vec![2, 3], vec![], vec![4]].to_debug_string(),
    "[[2, 3], [], [4]]"
);
assert_eq!(Some(5).to_debug_string(), "Some(5)");
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T, U> WrappingInto<U> for T
where U: WrappingFrom<T>,

Source§

fn wrapping_into(self) -> U