pub struct Cli {Show 22 fields
pub base: PathBuf,
pub name: Option<String>,
pub type: Vec<EntryType>,
pub grep: Option<String>,
pub mode: Option<Mode>,
pub size: Option<String>,
pub hidden: bool,
pub follow: bool,
pub no_ignore: bool,
pub limit: Option<usize>,
pub timeout: Option<f64>,
pub heartbeat: HeartbeatOpts,
pub question: Option<String>,
pub expect: Option<String>,
pub emit: Option<String>,
pub emit_stderr: Option<String>,
pub list: bool,
pub summary: bool,
pub detail: bool,
pub quiet: bool,
pub json: bool,
pub explain: Option<Format>,
}Fields§
§base: PathBufSearch root (relative or absolute), independent of the current directory.
name: Option<String>File-name pattern; ‘|’-separated alternatives, each substring->glob->regex promoted and anchored to the whole name.
type: Vec<EntryType>Restrict to entry kinds: f=file, d=dir, l=symlink (repeatable or comma-joined).
grep: Option<String>Content pattern (substring->glob->regex promoted); searches file contents. Accepts file:PATH / text:VALUE; a multi-line pattern matches as a line-anchored literal block.
mode: Option<Mode>Pin how patterns are interpreted (promotion off): literal, glob, or regex.
size: Option<String>Size predicate [+|-]N[k|m|g]: +N larger than, -N smaller than, N at least N.
Include dot-entries (names starting with ‘.’); default skips them.
follow: boolFollow symlinks while traversing.
no_ignore: boolWalk gitignored / .ignore files too (the .git directory is always skipped); by default the walk skips what git would.
limit: Option<usize>Stop after N matches.
timeout: Option<f64>Abort with exit 2 if the search exceeds SECS seconds (fractional allowed).
heartbeat: HeartbeatOpts§question: Option<String>Question this search answers, framing it as a test; printed as a “== … ==” banner unless –quiet.
expect: Option<String>Verdict expectation over the match count: any|none|N|=N|+N|-N (default: any). Turns the search into a pass/fail test whose exit status follows the verdict.
emit: Option<String>Template written to stdout after the search. Tokens: {RESULT} {QUESTION} {COUNT} {LINES} {BASE} {MATCHES}.
emit_stderr: Option<String>Template written to stderr after the search (same tokens as –emit).
list: boolOutput mode: print one matching path per line (default).
summary: boolOutput mode: print counts only.
detail: boolOutput mode: print matches plus, for –grep, each hit as path:line:text.
quiet: boolOutput mode: print nothing; report via exit status only.
json: boolEmit a structured JSON result instead of text (overrides the output mode and –emit).
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.