pub struct CliArgs {
pub lang: Option<String>,
pub verbose: bool,
pub quiet: bool,
pub config_dir: Option<PathBuf>,
pub no_color: bool,
pub output_format: Option<OutputFormat>,
pub disable_sudo: bool,
pub replace_host_key: bool,
pub allow_plaintext_secrets: bool,
pub secrets_key_file: Option<PathBuf>,
pub use_keyring: bool,
pub command: Command,
}Expand description
Global ssh-cli arguments.
Fields§
§lang: Option<String>Forces the CLI language (e.g. pt-BR, en-US).
verbose: boolIncreases log verbosity on stderr.
quiet: boolSuppresses non-JSON output (quiet mode).
config_dir: Option<PathBuf>Configuration directory override (useful for tests).
no_color: boolDisables colored output.
output_format: Option<OutputFormat>Global output format (text, json). If omitted: JSON when stdout is not a TTY.
disable_sudo: boolDisables sudo-exec/su-exec for this invocation (alias –disableSudo).
replace_host_key: boolReplaces a diverging host key in TOFU known_hosts.
allow_plaintext_secrets: boolAllow plaintext secrets at rest (no auto secrets.key). Prefer for tests only.
secrets_key_file: Option<PathBuf>Path to a 64-hex primary-key file (overrides env / XDG secrets.key for this one-shot).
use_keyring: boolPrefer OS keyring for the primary key (deprecated env: SSH_CLI_USE_KEYRING).
command: CommandSubcommand to run.
Trait Implementations§
Source§impl Args for CliArgs
impl Args for CliArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for CliArgs
impl CommandFactory for CliArgs
Source§impl FromArgMatches for CliArgs
impl FromArgMatches for CliArgs
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for CliArgs
impl Parser for CliArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for CliArgs
impl RefUnwindSafe for CliArgs
impl Send for CliArgs
impl Sync for CliArgs
impl Unpin for CliArgs
impl UnsafeUnpin for CliArgs
impl UnwindSafe for CliArgs
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