pub enum Command {
Vps {
action: VpsAction,
},
Connect {
name: String,
},
Exec {
vps_name: String,
command: String,
json: bool,
password: Option<String>,
password_stdin: bool,
key: Option<String>,
key_passphrase: Option<String>,
key_passphrase_stdin: bool,
timeout: Option<u64>,
description: Option<String>,
},
SudoExec {
vps_name: String,
command: String,
json: bool,
password: Option<String>,
password_stdin: bool,
sudo_password: Option<String>,
sudo_password_stdin: bool,
key: Option<String>,
key_passphrase: Option<String>,
key_passphrase_stdin: bool,
timeout: Option<u64>,
description: Option<String>,
},
SuExec {
vps_name: String,
command: String,
json: bool,
password: Option<String>,
password_stdin: bool,
su_password: Option<String>,
su_password_stdin: bool,
key: Option<String>,
key_passphrase: Option<String>,
key_passphrase_stdin: bool,
timeout: Option<u64>,
description: Option<String>,
},
Scp {
action: ScpAction,
},
Tunnel {
vps_name: String,
local_port: u16,
remote_host: String,
remote_port: u16,
timeout_ms: u64,
password: Option<String>,
password_stdin: bool,
key: Option<String>,
key_passphrase: Option<String>,
key_passphrase_stdin: bool,
json: bool,
bind: String,
},
HealthCheck {
vps_name: Option<String>,
json: bool,
password: Option<String>,
password_stdin: bool,
key: Option<String>,
key_passphrase: Option<String>,
key_passphrase_stdin: bool,
timeout: Option<u64>,
},
Secrets {
action: SecretsAction,
},
Completions {
shell: Shell,
},
}Expand description
Top-level subcommands.
Variants§
Vps
Manages registered VPS hosts.
Connect
Sets the active VPS (writes sibling active file in the config directory).
Exec
Runs a command on the VPS over SSH (stdout/stderr captured).
Fields
SudoExec
Runs a command with sudo (safe sh -c packing).
Fields
SuExec
Runs a command with one-shot su - elevation.
Fields
Scp
SCP file transfer (upload/download).
Tunnel
SSH tunnel with mandatory deadline (bounded one-shot).
Fields
HealthCheck
Checks SSH connectivity to a VPS.
Fields
Secrets
Manages the primary key and at-rest secret encryption (one-shot).
Fields
§
action: SecretsActionSecrets action.
Completions
Generates shell completions.
Trait Implementations§
Source§impl FromArgMatches for Command
impl FromArgMatches for Command
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 Command
impl Subcommand for Command
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 Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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