Skip to main content

ProviderCommands

Enum ProviderCommands 

Source
pub enum ProviderCommands {
    Add {
Show 16 fields provider: String, token: Option<String>, token_stdin: bool, prefix: Option<String>, user: Option<String>, key: Option<String>, url: Option<String>, profile: Option<String>, regions: Option<String>, project: Option<String>, compartment: Option<String>, no_verify_tls: bool, verify_tls: bool, auto_sync: bool, no_auto_sync: bool, label: Option<String>,
}, List, Remove { provider: String, }, }

Variants§

§

Add

Add or update a provider configuration

Fields

§provider: String

Provider name (digitalocean, vultr, linode, hetzner, upcloud, proxmox, aws, scaleway, gcp, azure, tailscale, oracle, ovh, leaseweb, i3d, transip)

§token: Option<String>

API token (or set PURPLE_TOKEN env var, or use –token-stdin)

§token_stdin: bool

Read token from stdin (e.g. from a password manager)

§prefix: Option<String>

Alias prefix (default: provider short label)

§user: Option<String>

Default SSH user (default: root)

§key: Option<String>

Default identity file

§url: Option<String>

Base URL for self-hosted providers (required for Proxmox)

§profile: Option<String>

AWS credential profile from ~/.aws/credentials

§regions: Option<String>

Comma-separated regions, zones or subscription IDs (e.g. us-east-1,eu-west-1 for AWS, fr-par-1,nl-ams-1 for Scaleway, us-central1-a for GCP zones or subscription UUIDs for Azure)

§project: Option<String>

GCP project ID

§compartment: Option<String>

OCI compartment OCID (Oracle)

§no_verify_tls: bool

Skip TLS certificate verification (for self-signed certs)

§verify_tls: bool

Explicitly enable TLS certificate verification (overrides stored setting)

§auto_sync: bool

Enable automatic sync on startup

§no_auto_sync: bool

Disable automatic sync on startup

§label: Option<String>

Optional label when adding a second config for the same provider (e.g. –label work, –label personal). Required once a provider already has a labeled config.

§

List

List configured providers

§

Remove

Remove a provider configuration. Pass provider for ALL configs of that provider, or provider:label for one specific config.

Fields

§provider: String

Provider name (digitalocean) or provider:label (digitalocean:work)

Trait Implementations§

Source§

impl FromArgMatches for ProviderCommands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

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<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Subcommand for ProviderCommands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V