pub enum VpsAction {
Add {Show 18 fields
name: String,
host: String,
port: u16,
user: String,
password: Option<String>,
password_stdin: bool,
key: Option<String>,
key_passphrase: Option<String>,
timeout: u64,
max_command_chars: Option<String>,
max_output_chars: Option<String>,
max_chars: Option<String>,
sudo_password: Option<String>,
sudo_password_stdin: bool,
su_password: Option<String>,
su_password_stdin: bool,
disable_sudo: bool,
check: bool,
},
List {
json: bool,
},
Remove {
name: String,
},
Edit {Show 17 fields
name: String,
host: Option<String>,
port: Option<u16>,
user: Option<String>,
password: Option<String>,
password_stdin: bool,
key: Option<String>,
key_passphrase: Option<String>,
timeout: Option<u64>,
max_command_chars: Option<String>,
max_output_chars: Option<String>,
max_chars: Option<String>,
sudo_password: Option<String>,
sudo_password_stdin: bool,
su_password: Option<String>,
su_password_stdin: bool,
disable_sudo: Option<bool>,
},
Show {
name: String,
json: bool,
},
Path,
Doctor {
json: bool,
},
Export {
include_secrets: bool,
output: Option<String>,
json: bool,
i_understand_secrets_on_stdout: bool,
},
Import {
file: PathBuf,
allow_incomplete: bool,
},
}Expand description
Actions of the vps subcommand.
Variants§
Add
Adds a new VPS to the registry.
Fields
List
Lists all VPS hosts (passwords masked).
Remove
Removes a VPS from the registry.
Edit
Edits fields of an existing VPS.
Fields
Show
Shows VPS details (passwords masked).
Path
Shows the configuration file path.
Doctor
Diagnostics for XDG layers / path / schema.
Export
Exports hosts (passwords redacted by default).
Fields
Import
Imports hosts from a TOML file or JSON vps-export envelope (EN + legacy PT keys).
Trait Implementations§
Source§impl FromArgMatches for VpsAction
impl FromArgMatches for VpsAction
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
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 VpsAction
impl Subcommand for VpsAction
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
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 moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for VpsAction
impl RefUnwindSafe for VpsAction
impl Send for VpsAction
impl Sync for VpsAction
impl Unpin for VpsAction
impl UnsafeUnpin for VpsAction
impl UnwindSafe for VpsAction
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