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: LintTargetprofile: 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.
View
Show analyzer findings or the reserved graph view.
Fields
target: ViewTargetCheck
Run the native or Windows cross-target cargo check.
Fields
target: CheckTargetClippy
Run the native or Windows cross-target cargo clippy analysis.
Fields
target: ClippyTargetCompatibility
Check the configured consumer installation and version requirement.
Fields
command: CompatibilityCommandSetup
Install or repair the managed sc-lint release required by sc-lint.toml.
Upgrade
Inspect or update the managed sc-lint release required by sc-lint.toml.
Fields
Init
Create or verify the product-owned consumer integration files.
Fields
Docs
Read an installed guide from the offline documentation bundle.
Fields
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.
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 FromArgMatches for Command
impl FromArgMatches for Command
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for Command
impl Subcommand for Command
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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