pub struct TreeArgs {Show 16 fields
pub root: PathBuf,
pub ext: Vec<String>,
pub exclude: Vec<String>,
pub exclude_ext: Vec<String>,
pub exclude_glob: Vec<String>,
pub include_rc: bool,
pub include_msbuild: bool,
pub include_hidden: bool,
pub max_file_size: Option<u64>,
pub config: Option<PathBuf>,
pub ignore_file: Option<PathBuf>,
pub no_ignore_file: bool,
pub threads: Option<usize>,
pub report: Option<PathBuf>,
pub quiet: bool,
pub verbose: bool,
}Expand description
Detection / filtering / reporting options shared by scan, verify, and
convert (tree mode). Conversion-only options live on ConvertArgs.
Fields§
§root: PathBufRoot directory to process recursively.
ext: Vec<String>Override the default extension whitelist (comma-separated).
exclude: Vec<String>Extra excluded directory names (comma-separated, appended to defaults).
exclude_ext: Vec<String>Extra excluded extensions (comma-separated, appended).
exclude_glob: Vec<String>Extra glob pattern excluding root-relative paths (repeatable).
include_rc: boolInclude .rc/.rc2/.dlg (rc.exe has limited UTF-8 support).
include_msbuild: boolInclude .sln/.vcxproj/… (VS re-saves these with a BOM).
Process dot-prefixed files and directories.
max_file_size: Option<u64>Skip files above this size, recorded as too_large (bytes; default 200 MiB). CLI value overrides the config file.
config: Option<PathBuf>Load defaults from this TOML config file (CLI flags override config values; missing/malformed file or unknown keys are fatal).
ignore_file: Option<PathBuf>Load gitignore-style exclusion patterns from this file (fatal when
missing; auto-discovery of <root>/.utf8forgeignore is replaced).
no_ignore_file: boolDisable ignore-file handling entirely, including auto-discovery of
<root>/.utf8forgeignore.
threads: Option<usize>Rayon worker thread count (default: CPU count; values below 1 are treated as 1, values above 1024 are a fatal input error).
report: Option<PathBuf>Write a JSON report to this path.
quiet: boolPrint errors only (verify/fix still print gate-critical walk warnings; overrides –verbose).
verbose: boolPrint one line per file.
Implementations§
Trait Implementations§
Source§impl Args for TreeArgs
impl Args for TreeArgs
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 Default for TreeArgs
impl Default for TreeArgs
Source§fn default() -> Self
fn default() -> Self
Mirrors the clap defaults (root = ".", max_file_size unset so the
config file merge applies, with the built-in 200 MiB cap applied by
TreeArgs::effective_max_file_size) so programmatic/test invocation
behaves exactly like the CLI.
Source§impl FromArgMatches for TreeArgs
impl FromArgMatches for TreeArgs
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.Auto Trait Implementations§
impl Forget for TreeArgs
impl Freeze for TreeArgs
impl Move for TreeArgs
impl RefUnwindSafe for TreeArgs
impl Send for TreeArgs
impl Sync for TreeArgs
impl Unpin for TreeArgs
impl UnsafeUnpin for TreeArgs
impl UnwindSafe for TreeArgs
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