pub struct L10nArgs {}
Fields§
§input: String
Rust files glob or directory
output: String
L10n resources dir
package: String
Package to scrap and copy dependencies
If set the –input and –output default is src/**.rs and l10n/
manifest_path: String
Path to Cargo.toml of crate to scrap and copy dependencies
If set the –input and –output default to src/**.rs and l10n/
no_deps: bool
Don’t copy dependencies localization
Use with –package or –manifest-path to not copy {dep-pkg}/l10n/*.ftl files
no_local: bool
Don’t scrap #.#.#-local
dependencies
Use with –package or –manifest-path to not scrap local dependencies.
no_pkg: bool
Don’t scrap the target package.
Use with –package or –manifest-path to only scrap dependencies.
clean_deps: bool
Remove all previously copied dependency localization files.
clean_template: bool
Remove all previously scraped resources before scraping.
clean: bool
Same as –clean-deps –clean-template
macros: String
Custom l10n macro names, comma separated
pseudo: String
Generate pseudo locale from dir/lang
EXAMPLE
“l10n/en” generates pseudo from “l10n/en.ftl” and “l10n/en/*.ftl”
pseudo_m: String
Generate pseudo mirrored locale
pseudo_w: String
Generate pseudo wide locale
check: bool
Only verify that the generated files are the same
verbose: bool
Use 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