pub struct L10nArgs {}Fields§
§input: StringRust files glob or directory
output: StringL10n resources dir
package: StringPackage to scrap and copy dependencies
If set the –input and –output default is src/**.rs and l10n/
manifest_path: StringPath to Cargo.toml of crate to scrap and copy dependencies
If set the –input and –output default to src/**.rs and l10n/
no_deps: boolDon’t copy dependencies localization
Use with –package or –manifest-path to not copy {dep-pkg}/l10n/*.ftl files
no_local: boolDon’t scrap #.#.#-local dependencies
Use with –package or –manifest-path to not scrap local dependencies.
no_pkg: boolDon’t scrap the target package.
Use with –package or –manifest-path to only scrap dependencies.
clean_deps: boolRemove all previously copied dependency localization files.
clean_template: boolRemove all previously scraped resources before scraping.
clean: boolSame as –clean-deps –clean-template
macros: StringCustom l10n macro names, comma separated
pseudo: StringGenerate pseudo locale from dir/lang
EXAMPLE
“l10n/en” generates pseudo from “l10n/en.ftl” and “l10n/en/*.ftl”
pseudo_m: StringGenerate pseudo mirrored locale
pseudo_w: StringGenerate pseudo wide locale
check: boolOnly verify that the generated files are the same
verbose: boolUse verbose output.
Trait Implementations§
Source§impl Args for L10nArgs
impl Args for L10nArgs
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§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 L10nArgs
impl FromArgMatches for L10nArgs
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 Freeze for L10nArgs
impl RefUnwindSafe for L10nArgs
impl Send for L10nArgs
impl Sync for L10nArgs
impl Unpin for L10nArgs
impl UnwindSafe for L10nArgs
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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