pub enum Commands {
List {
path: PathBuf,
sort: Option<String>,
order: String,
dirs_first: bool,
common: CommonArgs,
},
Tree {
path: PathBuf,
dirs_first: bool,
common: CommonArgs,
},
Find {
path: PathBuf,
names: Vec<String>,
regex: Option<String>,
ext: Vec<String>,
min_size: Option<String>,
max_size: Option<String>,
after: Option<String>,
before: Option<String>,
kind: Vec<String>,
category: Option<String>,
common: CommonArgs,
},
Size {
path: PathBuf,
top: Option<usize>,
aggregate: bool,
du: bool,
common: CommonArgs,
},
Grep {
path: PathBuf,
pattern: String,
regex: bool,
case_insensitive: bool,
ext: Vec<String>,
context: usize,
line_numbers: bool,
common: CommonArgs,
},
Git {
path: PathBuf,
status: Option<GitStatusFilter>,
since: Option<String>,
common: CommonArgs,
},
Completions {
shell: Shell,
},
Profiles {
command: ProfileCommand,
},
Run {
profile: String,
path: Option<PathBuf>,
args: Vec<String>,
},
}Variants§
List
List entries with metadata and sorting
Fields
§
common: CommonArgsTree
Display directory tree with ASCII art
Fields
§
common: CommonArgsFind
Find files matching criteria
Fields
§
category: Option<String>Filter by category (source, build, config, docs, media, data, archive, executable)
§
common: CommonArgsSize
Calculate and display sizes
Fields
§
common: CommonArgsGrep
Search file contents (grep functionality)
Fields
§
common: CommonArgsGit
Git integration - show files with git status
Completions
Generate shell completions
Profiles
Manage saved query profiles
Fields
§
command: ProfileCommandRun
Run a saved query profile
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
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>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for Commands
impl Subcommand for Commands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnwindSafe for Commands
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more