pub struct InitCommand {
pub non_interactive: bool,
pub profile: Option<InitProfile>,
pub key_alias: String,
pub force: bool,
pub dry_run: bool,
pub registry: String,
pub skip_registration: bool,
}Expand description
Initializes Auths identity with a guided setup wizard.
Supports three profiles (developer, ci, agent) covering the most common
deployment scenarios. Interactive by default; pass --non-interactive for
scripted or CI use.
Usage:
ⓘ
// auths init
// auths init --profile developer --non-interactive
// auths init --profile ci --non-interactiveFields§
§non_interactive: boolSkip interactive prompts and use sensible defaults
profile: Option<InitProfile>Preset profile: developer, ci, or agent
key_alias: StringKey alias for the identity key (default: main)
force: boolForce overwrite if identity already exists
dry_run: boolPreview agent configuration without creating files or identities
registry: StringRegistry URL for automatic identity registration
skip_registration: boolSkip automatic registry registration during setup
Trait Implementations§
Source§impl Args for InitCommand
impl Args for InitCommand
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 InitCommand
impl Clone for InitCommand
Source§fn clone(&self) -> InitCommand
fn clone(&self) -> InitCommand
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 Debug for InitCommand
impl Debug for InitCommand
Source§impl ExecutableCommand for InitCommand
impl ExecutableCommand for InitCommand
Source§impl FromArgMatches for InitCommand
impl FromArgMatches for InitCommand
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 InitCommand
impl RefUnwindSafe for InitCommand
impl Send for InitCommand
impl Sync for InitCommand
impl Unpin for InitCommand
impl UnsafeUnpin for InitCommand
impl UnwindSafe for InitCommand
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