pub struct Cli {
pub question: Option<String>,
pub every: f64,
pub timeout: f64,
pub ok_match: Option<String>,
pub err_match: Option<String>,
pub mode: Option<Mode>,
pub heartbeat: HeartbeatOpts,
pub emit: Option<String>,
pub emit_stderr: Option<String>,
pub quiet: bool,
pub explain: Option<Format>,
pub probe: Vec<String>,
}Fields§
§question: Option<String>Question this wait answers; printed as a “== … ==” banner.
every: f64Seconds between probe runs (fractional allowed).
timeout: f64Hard bound on the whole wait (fractional allowed). Required: a wait is bounded by design.
ok_match: Option<String>SUCCESS when this pattern (substring->glob->regex promoted) appears in the probe’s output. When supplied it is the REQUIRED proof: a clean exit without it means “not yet”.
err_match: Option<String>End the wait immediately with ERROR when this pattern appears in the probe’s output (decisive over –ok-match, exactly as in ct-test).
mode: Option<Mode>Pin how matcher patterns are interpreted (promotion off): literal, glob, or regex.
heartbeat: HeartbeatOpts§emit: Option<String>Template written to stdout when the wait ends. Tokens: {RESULT} {ELAPSED} {TICKS} {REASON} {QUESTION} {CMD}.
emit_stderr: Option<String>Template written to stderr when the wait ends (same tokens as –emit).
quiet: boolSuppress the banner and the default outcome line.
explain: Option<Format>Print agent usage docs (md or json) and exit.
probe: Vec<String>The probe (after --): an argv run directly each tick, never through a shell. Exit 0 ends the wait with SUCCESS; any other exit means “not yet”.
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.