pub enum AgentSubcommand {
Start {
socket: Option<PathBuf>,
foreground: bool,
timeout: String,
},
Stop,
Status,
Env {
shell: ShellFormat,
},
Lock,
Unlock {
key: String,
},
InstallService {
dry_run: bool,
force: bool,
manager: Option<ServiceManager>,
},
UninstallService,
}Variants§
Start
Start the SSH agent daemon
Fields
Stop
Stop the SSH agent daemon
Status
Show agent status
Env
Output shell environment for SSH_AUTH_SOCK (use with eval)
Fields
§
shell: ShellFormatShell format for output
Lock
Lock the agent (clear keys from memory)
Unlock
Unlock the agent (re-load keys)
InstallService
Install as a system service (launchd on macOS, systemd on Linux)
Fields
§
manager: Option<ServiceManager>Service manager to use (auto-detect if not specified)
UninstallService
Uninstall the system service
Trait Implementations§
Source§impl Clone for AgentSubcommand
impl Clone for AgentSubcommand
Source§fn clone(&self) -> AgentSubcommand
fn clone(&self) -> AgentSubcommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentSubcommand
impl Debug for AgentSubcommand
Source§impl FromArgMatches for AgentSubcommand
impl FromArgMatches for AgentSubcommand
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 AgentSubcommand
impl Subcommand for AgentSubcommand
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 AgentSubcommand
impl RefUnwindSafe for AgentSubcommand
impl Send for AgentSubcommand
impl Sync for AgentSubcommand
impl Unpin for AgentSubcommand
impl UnsafeUnpin for AgentSubcommand
impl UnwindSafe for AgentSubcommand
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