pub struct Cli {Show 19 fields
pub base: PathBuf,
pub name: Option<String>,
pub ext: Vec<String>,
pub hidden: bool,
pub follow: bool,
pub pattern: Option<String>,
pub mode: Option<Mode>,
pub kind: Vec<String>,
pub depth: Option<usize>,
pub flat: bool,
pub question: Option<String>,
pub expect: Option<String>,
pub emit: Option<String>,
pub emit_stderr: Option<String>,
pub quiet: bool,
pub json: bool,
pub timeout: Option<f64>,
pub heartbeat: HeartbeatOpts,
pub explain: Option<Format>,
}Fields§
§base: PathBufRoot to outline; a file outlines just that file, a directory is descended.
name: Option<String>Limit to files whose name matches; ‘|’-separated alternatives, each substring->glob->regex promoted and anchored.
ext: Vec<String>Restrict to these extensions (comma-separated, no dots), e.g. –ext rs,py. Combined with –name as alternatives.
Include dot-entries (names starting with ‘.’); default skips them.
follow: boolFollow symlinks while traversing.
pattern: Option<String>Keep entries whose name matches (substring->glob->regex promoted, anchored to the whole declaration name).
mode: Option<Mode>Pin how –match/–name patterns are interpreted (promotion off): literal, glob, or regex.
kind: Vec<String>Keep entries of these kinds (comma-separated), e.g. –kind fn,struct. Kinds are per-language keywords.
depth: Option<usize>Keep entries nested at most N levels deep (1 = top-level only).
flat: boolOutput one grep-friendly row per matched entry: path:start:end:kind:name.
question: Option<String>Question this outline answers, framing it as a test; printed as a “== … ==” banner unless –quiet.
expect: Option<String>Verdict expectation over the matched-entry count: any|none|N|=N|+N|-N (default: any).
emit: Option<String>Template written to stdout after the outline. Tokens: {RESULT} {QUESTION} {COUNT} {BASE} {MATCHES}.
emit_stderr: Option<String>Template written to stderr after the outline (same tokens as –emit).
quiet: boolPrint nothing; report via exit status (and –emit, which still fires).
json: boolEmit a structured JSON result instead of text (overrides the text modes and –emit).
timeout: Option<f64>Abort with exit 2 if the run exceeds SECS seconds (fractional allowed).
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.