pub enum Commands {
Show 13 variants
Add {
target: String,
alias: Option<String>,
key: Option<String>,
},
Import {
file: Option<String>,
known_hosts: bool,
group: Option<String>,
},
Sync {
provider: Option<String>,
dry_run: bool,
remove: bool,
},
Provider {
command: ProviderCommands,
},
Tunnel {
command: TunnelCommands,
},
Password {
command: PasswordCommands,
},
Snippet {
command: SnippetCommands,
},
Update,
Mcp {
read_only: bool,
no_audit: bool,
audit_log: Option<String>,
},
Theme {
command: ThemeCommands,
},
Vault {
command: VaultCommands,
},
Logs {
tail: bool,
clear: bool,
},
WhatsNew {
since: Option<String>,
},
}Variants§
Add
Quick-add a host: purple add user@host:port –alias myserver
Fields
Import
Import hosts from a file or known_hosts
Fields
Sync
Sync hosts from cloud providers (DigitalOcean, Vultr, Linode, Hetzner, UpCloud, Proxmox VE, AWS EC2, Scaleway, GCP, Azure, Tailscale, Oracle Cloud, OVHcloud, Leaseweb, i3D.net, TransIP)
Fields
Provider
Manage cloud provider configurations
Fields
command: ProviderCommandsTunnel
Manage SSH tunnels
Fields
command: TunnelCommandsPassword
Manage passwords in the OS keychain for SSH hosts
Fields
command: PasswordCommandsSnippet
Manage command snippets for quick execution on hosts
Fields
command: SnippetCommandsUpdate
Update purple to the latest version
Mcp
Start MCP server (Model Context Protocol) for AI agent integration
Fields
read_only: boolRestrict tools to read-only operations. Denies run_command and container_action, and removes them from tools/list. Recommended when exposing purple to autonomous agents.
Theme
Manage color themes
Fields
command: ThemeCommandsVault
HashiCorp Vault SSH secrets engine operations (signed SSH certificates)
Fields
command: VaultCommandsLogs
View or manage log file
WhatsNew
Print release notes since a prior version
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
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>
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>
ArgMatches to self.Source§impl Subcommand for Commands
impl Subcommand for Commands
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
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
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnsafeUnpin for Commands
impl UnwindSafe for Commands
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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