pub struct Cli {Show 25 fields
pub base: PathBuf,
pub name: Option<String>,
pub mode: Option<Mode>,
pub ext: Vec<String>,
pub hidden: bool,
pub follow: bool,
pub no_ignore: bool,
pub min_lines: Option<u64>,
pub max_lines: Option<u64>,
pub min_words: Option<u64>,
pub max_words: Option<u64>,
pub min_chars: Option<u64>,
pub max_chars: Option<u64>,
pub min_files_per_folder: Option<usize>,
pub max_files_per_folder: Option<usize>,
pub sort: SortKey,
pub desc: bool,
pub tree: bool,
pub flat: bool,
pub summary: bool,
pub group: GroupBy,
pub json: bool,
pub timeout: Option<f64>,
pub heartbeat: HeartbeatOpts,
pub explain: Option<Format>,
}Fields§
§base: PathBufRoot to walk (relative or absolute), independent of the current directory.
name: Option<String>File-name pattern; ‘|’-separated alternatives, each substring->glob->regex promoted and anchored.
mode: Option<Mode>Pin how –name/–ext patterns are interpreted (promotion off): literal, glob, or regex.
ext: Vec<String>Restrict to these extensions (comma-separated, no dots), e.g. –ext rs,toml. Combined with –name as alternatives.
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.
min_lines: Option<u64>Only include files with at least N lines.
max_lines: Option<u64>Only include files with at most N lines.
min_words: Option<u64>Only include files with at least N words.
max_words: Option<u64>Only include files with at most N words.
min_chars: Option<u64>Only include files with at least N characters.
max_chars: Option<u64>Only include files with at most N characters.
min_files_per_folder: Option<usize>Only include folders that directly contain at least N matching files.
max_files_per_folder: Option<usize>Only include folders that directly contain at most N matching files.
sort: SortKeySort key: path, name, lines, words, chars, or ext.
desc: boolSort descending instead of ascending.
tree: boolOutput mode: an indented file tree with per-file and per-folder counts (default).
flat: boolOutput mode: one matching file per line with its counts.
summary: boolOutput mode: aggregate counts only, grouped by –group.
group: GroupByGrouping for –summary: ext, dir, or none (grand total only).
json: boolEmit a structured JSON result instead of text.
timeout: Option<f64>Abort with exit 2 if the report 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.