pub struct JoinArgs {
pub input_folder: PathBuf,
pub output_file: PathBuf,
pub patterns: Option<Vec<String>>,
pub exclude: Option<Vec<String>>,
pub clear_file: bool,
pub max_depth: Option<usize>,
pub hidden: bool,
pub no_follow: bool,
}Expand description
Defines the arguments for the ‘join’ subcommand.
Fields§
§input_folder: PathBufThe root folder to start traversing for files. This is a required argument.
output_file: PathBufThe path to the output file where the concatenated content will be written.
patterns: Option<Vec<String>>Glob patterns for files to include. Can be specified multiple times. If not provided, all files are considered (subject to exclusions). Example: -p “.rs” -p “.md”
exclude: Option<Vec<String>>Glob patterns for files or folders to exclude. Can be specified multiple times. This is a powerful way to filter out unwanted content like build artifacts or logs. Example: -x “*.log” -x “target/”
clear_file: boolIf set, the output file will be deleted before writing new content.
max_depth: Option<usize>Sets the maximum depth for directory traversal. A depth of 0 means only the input folder itself will be scanned.
If set, hidden files and directories (those starting with a ‘.’) will be included.
no_follow: boolIf set to false, the walker will follow symbolic links. Defaults to true (no-follow).
Trait Implementations§
Source§impl Args for JoinArgs
impl Args for JoinArgs
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 FromArgMatches for JoinArgs
impl FromArgMatches for JoinArgs
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.