pub struct TemplatizeArgs {
pub from_env: String,
pub dry_run: bool,
}Fields§
§from_env: StringCanonical environment whose current body values are treated as
truth and copied into values/<from-env>.yaml. All other envs
declared in the config get a value: null skeleton file.
dry_run: boolPreview-only mode. Walks the same code path but does not touch any file on disk. Prints a summary of what would change.
Trait Implementations§
Source§impl Args for TemplatizeArgs
impl Args for TemplatizeArgs
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
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for TemplatizeArgs
impl Debug for TemplatizeArgs
Source§impl FromArgMatches for TemplatizeArgs
impl FromArgMatches for TemplatizeArgs
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>
Assign values from
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>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for TemplatizeArgs
impl RefUnwindSafe for TemplatizeArgs
impl Send for TemplatizeArgs
impl Sync for TemplatizeArgs
impl Unpin for TemplatizeArgs
impl UnsafeUnpin for TemplatizeArgs
impl UnwindSafe for TemplatizeArgs
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
Mutably borrows from an owned value. Read more