pub struct Cli {Show 14 fields
pub filename: String,
pub minlen: usize,
pub noop: bool,
pub only_list_typos: Option<TypoType>,
pub details: bool,
pub message: String,
pub typo: Option<Vec<String>>,
pub exclude_file: Option<Vec<String>>,
pub exclude_typo: Option<Vec<String>>,
pub exclude_correction: Option<Vec<String>>,
pub debug: bool,
pub contributors: bool,
pub changelog: bool,
pub completion: Option<Shell>,
}Expand description
This program analyzes a json file produced with typos and makes commits
for each correction.
Fields§
§filename: Stringtypos file filename to analyze
minlen: usizeminimum length of the typo correction to be considered as correctable automatically.
noop: boolPrints what it will do without doing it
only_list_typos: Option<TypoType>Lists typos found in a brief way (does not modify anything)
details: boolDetails output of –only-list-typos option
message: StringMessage to be used in commits. It may use ‘{typo}’ and ‘{correction}’.
typo: Option<Vec<String>>Corrects only this typo (use multiple times add a typo to be corrected)
exclude_file: Option<Vec<String>>Excludes file from being included in corrections (use multiple times to exclude more than one file)
exclude_typo: Option<Vec<String>>Excludes typo from being corrected (use multiple times to exclude more than one typo)
exclude_correction: Option<Vec<String>>Excludes a correction from being correctable (use multiple times to exclude more than one correction)
debug: boolDebug options that prints information to know what is going on
contributors: boolprints typos-git-commit contributor’s list
changelog: boolprints typos-git-commit changelog
completion: Option<Shell>prints typos-git-commit bash completion’s shell script
Implementations§
Trait Implementations§
Source§impl Args for Cli
impl Args for Cli
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 Cli
impl CommandFactory for Cli
Source§impl FromArgMatches for Cli
impl FromArgMatches for Cli
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.