pub enum Comando {
Vps {
acao: AcaoVps,
},
Connect {
nome: String,
},
Exec {
vps_nome: String,
comando: String,
json: bool,
password: Option<String>,
timeout: Option<u64>,
},
SudoExec {
vps_nome: String,
comando: String,
json: bool,
password: Option<String>,
sudo_password: Option<String>,
timeout: Option<u64>,
},
Scp {
acao: AcaoScp,
},
Tunnel {
vps_nome: String,
porta_local: u16,
host_remoto: String,
porta_remota: u16,
password: Option<String>,
},
HealthCheck {
vps_nome: Option<String>,
password: Option<String>,
},
Completions {
shell: Shell,
},
}Expand description
Subcomandos de primeiro nível.
Variants§
Vps
Gerencia VPSs cadastradas (add, list, remove, edit, show, path).
Connect
Define a VPS ativa (grava active = "<NOME>" no config.toml).
Exec
Executa um comando na VPS via SSH (stdout/stderr capturados).
Fields
SudoExec
Executa um comando com sudo na VPS via SSH.
Fields
Scp
Transferência de arquivos via SCP (upload/download).
Tunnel
Cria um tunnel SSH (port-forward local).
Fields
HealthCheck
Verifica conectividade SSH com uma VPS.
Fields
Completions
Gera completions de shell (bash, zsh, fish, powershell, elvish).
Trait Implementations§
Source§impl FromArgMatches for Comando
impl FromArgMatches for Comando
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 Comando
impl Subcommand for Comando
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 Comando
impl RefUnwindSafe for Comando
impl Send for Comando
impl Sync for Comando
impl Unpin for Comando
impl UnsafeUnpin for Comando
impl UnwindSafe for Comando
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