pub struct Args {Show 22 fields
pub root_dir: PathBuf,
pub pattern: Option<String>,
pub substitute: Option<String>,
pub patterns_file: Option<PathBuf>,
pub assume_yes: bool,
pub verbose: bool,
pub follow_symlinks: bool,
pub backup: bool,
pub files_only: bool,
pub dirs_only: bool,
pub names_only: bool,
pub content_only: bool,
pub max_depth: usize,
pub exclude_patterns: Vec<String>,
pub include_patterns: Vec<String>,
pub format: OutputFormat,
pub threads: usize,
pub progress: ProgressMode,
pub ignore_case: bool,
pub use_regex: bool,
pub include_hidden: bool,
pub binary_names: bool,
}Fields§
§root_dir: PathBufRoot directory to search in
pattern: Option<String>Pattern to find and replace (required unless –patterns-file is used)
substitute: Option<String>Replacement text (required unless –patterns-file is used)
patterns_file: Option<PathBuf>File containing pattern/substitute pairs, one pair per line with shell-style quoting
assume_yes: boolAssume “yes” to confirmation prompts (non-interactive mode)
verbose: boolShow detailed output
follow_symlinks: boolFollow symbolic links
backup: boolCreate backup files before modifying content
files_only: boolOnly process files (skip directories)
dirs_only: boolOnly process directories (skip files)
names_only: boolSkip content replacement, only rename files/directories
content_only: boolSkip file/directory renaming, only replace content
max_depth: usizeMaximum depth to search (0 = unlimited)
exclude_patterns: Vec<String>Exclude files matching these patterns (glob patterns)
include_patterns: Vec<String>Include only files matching these patterns (glob patterns)
format: OutputFormatOutput format
threads: usizeNumber of threads to use for processing (0 = auto)
progress: ProgressModeProgress display mode
ignore_case: boolIgnore case when matching patterns
use_regex: boolUse regex patterns instead of literal strings
Include hidden files and directories (starting with ‘.’)
binary_names: boolInclude binary file names in renaming operations (content will still be skipped)
Implementations§
Source§impl Args
impl Args
pub fn get_mode(&self) -> Mode
pub fn validate(&self) -> Result<(), String>
pub fn should_process_files(&self) -> bool
pub fn should_process_dirs(&self) -> bool
pub fn should_process_content(&self) -> bool
pub fn should_process_names(&self) -> bool
pub fn get_thread_count(&self) -> usize
Trait Implementations§
Source§impl Args for Args
impl Args for Args
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 Args
impl CommandFactory for Args
Source§impl FromArgMatches for Args
impl FromArgMatches for Args
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.Source§impl Parser for Args
impl Parser for Args
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnsafeUnpin for Args
impl UnwindSafe for Args
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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