pub struct Cli {Show 15 fields
pub file: Option<PathBuf>,
pub id: Option<String>,
pub mode: Option<Mode>,
pub tag: Vec<String>,
pub fail_fast: bool,
pub list: bool,
pub quiet: bool,
pub json: bool,
pub json_pretty: bool,
pub emit_each: Option<String>,
pub emit: Option<String>,
pub emit_stderr: Option<String>,
pub timeout: Option<f64>,
pub heartbeat: HeartbeatOpts,
pub explain: Option<Format>,
}Fields§
§file: Option<PathBuf>Rule store. Default: the nearest .ct/rules.jsonc walking upward from the current directory.
id: Option<String>Select rules whose id matches (substring->glob->regex promoted, anchored).
mode: Option<Mode>Pin how –id is interpreted (promotion off): literal, glob, or regex.
tag: Vec<String>Select rules carrying any of these tags (comma-separated).
fail_fast: boolStop after the first enforced violation; remaining rules are reported as skipped.
list: boolPrint the selected rules (id, lanes, question, tags); run nothing.
quiet: boolSuppress per-rule lines and the default summary.
json: boolEmit a structured JSON result instead of text (overrides the emit templates).
json_pretty: boolLike --json, but pretty-printed (indented).
emit_each: Option<String>Per-rule template written to stdout. Tokens: {RESULT} {ID} {QUESTION} {CODE} {WHY} {CMD}.
emit: Option<String>Summary template written to stdout. Tokens: {RESULT} {OK} {ERRORS} {WARNED} {PENDING} {BROKEN} {SKIPPED} {TOTAL} {REASON}.
emit_stderr: Option<String>Summary template written to stderr (same tokens as –emit).
timeout: Option<f64>Default per-rule bound in seconds (fractional allowed); a rule’s own timeout field overrides it. A timed-out probe is BROKEN.
heartbeat: HeartbeatOpts§explain: Option<Format>Print agent usage docs (md or json) and exit.
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.