pub struct Cli {Show 24 fields
pub items: Vec<String>,
pub mode: Option<Mode>,
pub stdin: bool,
pub base: Option<PathBuf>,
pub name: Option<String>,
pub ext: Vec<String>,
pub hidden: bool,
pub follow: bool,
pub no_ignore: bool,
pub question: Option<String>,
pub expect: Option<String>,
pub fail_fast: bool,
pub mutating: bool,
pub dry_run: bool,
pub timeout: Option<f64>,
pub heartbeat: HeartbeatOpts,
pub emit_each: Option<String>,
pub emit: Option<String>,
pub emit_stderr: Option<String>,
pub show_output: bool,
pub quiet: bool,
pub json: bool,
pub explain: Option<Format>,
pub command: Vec<String>,
}Fields§
§items: Vec<String>Items to dispatch over, in order (repeatable; one run per item). file:PATH expands to the file’s non-empty lines; text:VALUE is one literal item.
mode: Option<Mode>Pin how –name/–ext walker patterns are interpreted (promotion off): literal, glob, or regex.
stdin: boolAlso read items from standard input, one per line (blank lines skipped), after any walker items.
base: Option<PathBuf>Walker item source: files under this root become items (paths). A file yields itself; a directory is descended.
name: Option<String>Walker item source: limit to files whose name matches; ‘|’-separated alternatives, each substring->glob->regex promoted and anchored. Implies –base . when –base is absent.
ext: Vec<String>Walker item source: restrict to these extensions (comma-separated, no dots). Combined with –name as alternatives. Implies –base . when –base is absent.
Include dot-entries while walking; default skips them.
follow: boolFollow symlinks while walking.
no_ignore: boolWalk gitignored / .ignore files too (the .git directory is always skipped); by default the walk skips what git would.
question: Option<String>Question this sweep answers; printed as a “== … ==” banner.
expect: Option<String>Expectation over the per-item SUCCESS count: all|any|none|N|=N|+N|-N (default: all).
fail_fast: boolStop after the first per-item ERROR; remaining items are reported as skipped.
mutating: boolPermit the suite’s mutating tools (ct-edit, ct-patch) as the command.
dry_run: boolPrint each expanded command without running anything.
timeout: Option<f64>Per item: kill the run and classify that item ERROR after SECS seconds (fractional allowed); its {CODE} becomes “timeout”.
heartbeat: HeartbeatOpts§emit_each: Option<String>Per-item template written to stdout. Tokens: {RESULT} {ITEM} {INDEX} {CODE} {CMD} {STDOUT} {STDERR}. Default (unless –quiet): “{RESULT} {ITEM}”.
emit: Option<String>Summary template written to stdout after the sweep. Tokens: {RESULT} {OK} {ERRORS} {SKIPPED} {TOTAL} {QUESTION} {EXPECT} {REASON}.
emit_stderr: Option<String>Summary template written to stderr (same tokens as –emit).
show_output: boolAlso pass each child’s stdout/stderr through verbatim.
quiet: boolSuppress the question banner, the default per-item lines, and the default summary.
json: boolEmit a structured JSON result instead of text (overrides the emit templates).
explain: Option<Format>Print agent usage docs (md or json) and exit.
command: Vec<String>Command and arguments run per item (after --); {ITEM} and {INDEX} expand in every element.
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.