pub enum ReplCommand {
Shared(Command),
Connect {
selector: Option<String>,
pick: bool,
},
Remote {
target: KeyArg,
},
Disconnect,
Exit,
}Expand description
The REPL’s grammar: everything the one-shot tree has, plus the few verbs that only mean something inside a session.
Variants§
Connect
Attach to a radio, replacing the current attachment. With no argument, rediscovers the way a bare launch does.
Fields
Remote
Open a session to a device across the mesh, using the attached radio to reach it.
The radio is borrowed for as long as the session lasts, and every
command that reads or writes the device works the same as it does
over a wire — slower, and without the host domain, which is not an
administrator’s to see. disconnect gives the radio back.
Disconnect
Detach from the current radio without leaving the shell.
On a mesh session this ends the session and returns to the radio
it borrowed; a second disconnect lets go of that too.
Exit
Leave the shell.
Trait Implementations§
Source§impl Debug for ReplCommand
impl Debug for ReplCommand
Source§impl FromArgMatches for ReplCommand
impl FromArgMatches for ReplCommand
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 ReplCommand
impl Subcommand for ReplCommand
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 subcommand