Struct Args
pub struct Args {
command: Option<Commands>,
username: Option<String>,
port: Option<u16>,
hosts: Vec<String>,
debug: bool,
}Expand description
Cluster SSH tool for Windows inspired by csshX
The main CLI arguments
Fields§
§command: Option<Commands>Optional subcommand Usually not specified by the user
username: Option<String>Optional username used to connect to the hosts
port: Option<u16>Optional port used for all SSH connections
hosts: Vec<String>Hosts and/or cluster tag(s) to connect to
Hosts or cluster tags might use brace expansion, but need to be properly quoted.
E.g.: csshw.exe "host{1..3}" hostA
Hosts can include a username which will take precedence over the
username given via the -u option and over any ssh config value.
E.g.: csshw.exe -u user3 user1@host1 userA@hostA host3
Hosts can include a port number which will take precedence over the
port given via the -p option.
E.g.: csshw.exe -p 33 host1:11 host2:22 host3
If no hosts are provided and the application is launched in a new console window (e.g. by double clicking the executable in the File Explorer), it will launch in interactive mode.
debug: boolEnable extensive logging
Trait Implementations§
§impl Args for Args
impl Args for Args
§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id][crate::ArgGroup::id] for this set of arguments§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read more§impl FromArgMatches for Args
impl FromArgMatches for Args
§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
§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>
§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.§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>
ArgMatches to self.