Skip to main content

Command

Enum Command 

Source
pub enum Command {
    Lint {
        target: LintTarget,
        consumer: bool,
        profile: Option<String>,
        platform_scope: Option<PlatformScopeArg>,
        rule_filter: Option<String>,
        fail_fast: bool,
    },
    View {
        target: ViewTarget,
    },
    Check {
        target: CheckTarget,
    },
    Clippy {
        target: ClippyTarget,
    },
    Compatibility {
        command: CompatibilityCommand,
    },
    Setup {
        dry_run: bool,
    },
    Upgrade {
        check: bool,
        dry_run: bool,
    },
    Init {
        just: bool,
        check: bool,
        dry_run: bool,
    },
    Docs {
        guide: Option<DocsGuide>,
        path: bool,
    },
    Test {
        selector_and_args: Vec<String>,
        list: bool,
        fail_fast: bool,
    },
    Version,
    Ci,
}

Variants§

§

Lint

Run one analyzer, maintainer lint profile, or configured consumer lint profile.

Fields

§target: LintTarget
§consumer: bool

Run a configured consumer profile. Supported only with ci.

§profile: Option<String>

Select a consumer lint profile or step (all runs every step in declaration order); requires --consumer.

§platform_scope: Option<PlatformScopeArg>

Consumer CI platform scope: host runs unannotated and host-tagged steps; all also reports unsupported cross-platform steps; a named platform adds its steps. Requires --consumer.

§rule_filter: Option<String>

Run these analyzer rules (<RULE-ID|family>[,...]); forwarded unchanged to the selected analyzer.

§fail_fast: bool

Stop starting new cargo-lane and after_all steps after the first failure; running steps finish.

§

View

Show analyzer findings or the reserved graph view.

Fields

§target: ViewTarget
§

Check

Run the native or Windows cross-target cargo check.

Fields

§

Clippy

Run the native or Windows cross-target cargo clippy analysis.

Fields

§

Compatibility

Check the configured consumer installation and version requirement.

Fields

§

Setup

Install or repair the managed sc-lint release required by sc-lint.toml.

Fields

§dry_run: bool

Report the selected release and install location without changing either.

§

Upgrade

Inspect or update the managed sc-lint release required by sc-lint.toml.

Fields

§check: bool

Report whether the configured minimum version requires an update.

§dry_run: bool

Report the selected release and install location without changing either.

§

Init

Seed consumer integration files and manage the bootstrap.

Fields

§just: bool

Generate the canonical thin Just integration.

§check: bool

Verify that the generated integration is current without changing files.

§dry_run: bool

Report the changes that would be made without changing files.

§

Docs

Read an installed guide from the offline documentation bundle.

Fields

§guide: Option<DocsGuide>

Guide to print or resolve. Defaults to the overview (README).

§path: bool

Print the guide or bundle path without a label.

§

Test

Run the explicitly configured consumer test profile.

Fields

§selector_and_args: Vec<String>

Selector to run, then the arguments appended to its command. Omitted runs default (every row of a [[tool.sc-lint.test]] list). Flags (--fail-fast, --list, --config, --json) must precede the selector; everything after it is forwarded verbatim. One positional, so clap stops parsing flags at the selector.

§list: bool

Print the declared selectors instead of running them.

§fail_fast: bool

Same as lint --consumer --fail-fast.

§

Version

Print the product, backend, and contract versions.

§

Ci

Run the source-maintainer CI profile. Use sc-lint lint ci --consumer for a configured consumer profile.

Trait Implementations§

Source§

impl Clone for Command

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Command

Source§

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

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

impl FromArgMatches for Command

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<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Command

Source§

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

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

fn augment_subcommands_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§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> 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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.