Commands

Enum Commands 

Source
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

§path: PathBuf

Root path to list

§sort: Option<String>

Sort by key

§order: String

Sort order (asc or desc)

§dirs_first: bool

Show directories first

§common: CommonArgs
§

Tree

Display directory tree with ASCII art

Fields

§path: PathBuf

Root path to display

§dirs_first: bool

Show directories first

§common: CommonArgs
§

Find

Find files matching criteria

Fields

§path: PathBuf

Root path to search

§names: Vec<String>

Name glob patterns (repeatable)

§regex: Option<String>

Regex pattern for names

§ext: Vec<String>

File extensions (comma-separated)

§min_size: Option<String>

Minimum size (e.g., 10KB, 2MiB)

§max_size: Option<String>

Maximum size (e.g., 10MB, 2GiB)

§after: Option<String>

Modified after date (ISO8601 or YYYY-MM-DD)

§before: Option<String>

Modified before date (ISO8601 or YYYY-MM-DD)

§kind: Vec<String>

Filter by kind (file, dir, symlink)

§category: Option<String>

Filter by category (source, build, config, docs, media, data, archive, executable)

§common: CommonArgs
§

Size

Calculate and display sizes

Fields

§path: PathBuf

Root path to analyze

§top: Option<usize>

Show top N entries by size

§aggregate: bool

Aggregate directory sizes

§du: bool

Display like ‘du’ command

§common: CommonArgs
§

Grep

Search file contents (grep functionality)

Fields

§path: PathBuf

Root path to search

§pattern: String

Pattern to search for

§regex: bool

Use regex matching (default is literal)

§case_insensitive: bool

Case insensitive search

§ext: Vec<String>

File extensions to search (comma-separated)

§context: usize

Number of context lines to show

§line_numbers: bool

Show line numbers

§common: CommonArgs
§

Git

Git integration - show files with git status

Fields

§path: PathBuf

Root path (must be in a git repository)

§status: Option<GitStatusFilter>

Filter by git status

§since: Option<String>

Show files changed since ref (branch/commit/tag)

§common: CommonArgs
§

Completions

Generate shell completions

Fields

§shell: Shell

Shell to generate completions for

§

Profiles

Manage saved query profiles

Fields

§

Run

Run a saved query profile

Fields

§profile: String

Profile name to execute

§path: Option<PathBuf>

Override the path argument

§args: Vec<String>

Additional arguments to override profile settings

Trait Implementations§

Source§

impl Debug for Commands

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for Commands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

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>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Commands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

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 more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.