pub struct ScanArgs {
pub path: Option<PathBuf>,
pub tags: Option<Vec<String>>,
pub include: Option<Vec<String>>,
pub exclude: Option<Vec<String>>,
pub json: bool,
pub flat: bool,
pub depth: usize,
pub follow_links: bool,
pub hidden: bool,
pub case_sensitive: bool,
pub sort: SortOrder,
pub group_by_tag: bool,
}Expand description
Arguments for the scan command
Fields§
§path: Option<PathBuf>Directory or file to scan (defaults to current directory)
Tags to search for (comma-separated)
include: Option<Vec<String>>File patterns to include (glob patterns, comma-separated)
exclude: Option<Vec<String>>File patterns to exclude (glob patterns, comma-separated)
json: boolOutput results in JSON format
flat: boolOutput results in flat format (no tree structure)
depth: usizeMaximum depth to scan (0 = unlimited)
follow_links: boolFollow symbolic links
Include hidden files and directories
case_sensitive: boolCase-sensitive tag matching
sort: SortOrderSort results by: file, tag, line
group_by_tag: boolGroup results by tag instead of by file
Trait Implementations§
Source§impl Args for ScanArgs
impl Args for ScanArgs
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
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for ScanArgs
impl FromArgMatches for ScanArgs
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for ScanArgs
impl RefUnwindSafe for ScanArgs
impl Send for ScanArgs
impl Sync for ScanArgs
impl Unpin for ScanArgs
impl UnwindSafe for ScanArgs
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