pub struct ProvisionCommand {
pub config: PathBuf,
pub dry_run: bool,
pub force: bool,
}Expand description
Declarative headless provisioning for enterprise deployments.
Reads a TOML configuration file and reconciles the node’s identity
state to match. Environment variables with prefix AUTHS_ and
separator __ override any TOML values.
Usage:
ⓘ
auths provision --config node.toml
auths provision --config node.toml --dry-run
AUTHS_IDENTITY__KEY_ALIAS=override auths provision --config node.tomlFields§
§config: PathBufPath to the TOML configuration file.
dry_run: boolValidate config and print resolved state without applying changes.
force: boolOverwrite existing identity if present.
Trait Implementations§
Source§impl Args for ProvisionCommand
impl Args for ProvisionCommand
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 Clone for ProvisionCommand
impl Clone for ProvisionCommand
Source§fn clone(&self) -> ProvisionCommand
fn clone(&self) -> ProvisionCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CommandFactory for ProvisionCommand
impl CommandFactory for ProvisionCommand
Source§impl Debug for ProvisionCommand
impl Debug for ProvisionCommand
Source§impl ExecutableCommand for ProvisionCommand
impl ExecutableCommand for ProvisionCommand
Source§impl FromArgMatches for ProvisionCommand
impl FromArgMatches for ProvisionCommand
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.Source§impl Parser for ProvisionCommand
impl Parser for ProvisionCommand
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for ProvisionCommand
impl RefUnwindSafe for ProvisionCommand
impl Send for ProvisionCommand
impl Sync for ProvisionCommand
impl Unpin for ProvisionCommand
impl UnsafeUnpin for ProvisionCommand
impl UnwindSafe for ProvisionCommand
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