pub enum Command {
Show 36 variants
Attach {
target: Option<String>,
},
Serve,
RuntimeKeeper {
keeper_socket: PathBuf,
cols: u16,
rows: u16,
cwd: Option<PathBuf>,
env: Vec<(String, OsString)>,
command: Vec<String>,
},
Automation {
target: Option<String>,
all_sessions: bool,
},
Ping {
payload: String,
},
KillServer,
NewSession {
name: String,
},
ListSessions,
HasSession {
target: String,
},
KillSession {
target: Option<String>,
force: bool,
detach: bool,
},
RenameSession {
target: Option<String>,
name: String,
},
ListBuffers {
target: Option<String>,
attached: bool,
detached: bool,
},
AttachBuffer {
buffer_id: u64,
target: Option<String>,
},
ListClients,
DetachClient {
client_id: Option<u64>,
},
SwitchClient {
client_id: Option<u64>,
target: String,
},
Buffer {
command: BufferCommand,
},
Node {
command: NodeCommand,
},
NewWindow {
target: Option<String>,
title: Option<String>,
command: Vec<String>,
},
ListWindows {
target: Option<String>,
},
SelectWindow {
target: String,
},
RenameWindow {
target: Option<String>,
title: String,
},
KillWindow {
target: Option<String>,
detach: bool,
},
SplitWindow {
target: Option<String>,
horizontal: bool,
vertical: bool,
command: Vec<String>,
},
ListPanes {
target: Option<String>,
},
SelectPane {
target: Option<String>,
last: bool,
},
ResizePane {
target: Option<String>,
sizes: Vec<u16>,
left: bool,
right: bool,
up: bool,
down: bool,
zoom: bool,
adjustment: Option<u16>,
},
SynchronizePanes {
target: Option<String>,
state: Option<SwitchArg>,
},
SendKeys {
target: Option<String>,
enter: bool,
keys: Vec<String>,
},
CapturePane {
target: Option<String>,
},
KillPane {
target: Option<String>,
detach: bool,
},
DisplayPopup {
target: Option<String>,
title: Option<String>,
x: u16,
y: u16,
width: u16,
height: u16,
command: Vec<String>,
},
KillPopup {
target: Option<String>,
detach: bool,
},
DisplayMessage {
target: Option<String>,
client: Option<NonZeroU64>,
print: bool,
duration: Option<u32>,
message: Vec<String>,
},
SetEnvironment {
target: Option<String>,
global: bool,
unset: bool,
name: String,
value: Option<String>,
},
ShowEnvironment {
target: Option<String>,
global: bool,
name: Option<String>,
},
}Variants§
Attach
Serve
RuntimeKeeper
Fields
Automation
Ping
KillServer
Stop the server and end every program it runs. Unlike stopping the server with a signal, nothing is left for a restarted server to reattach to or restore.
NewSession
ListSessions
HasSession
KillSession
Close a session and end the programs in its panes and popups.
Fields
RenameSession
ListBuffers
AttachBuffer
ListClients
DetachClient
Detach a client. From the command prompt the client defaults to the one the prompt belongs to.
SwitchClient
Show session -t on a client. From the command prompt the client
defaults to the one the prompt belongs to.
Buffer
Fields
command: BufferCommandNode
Fields
command: NodeCommandNewWindow
ListWindows
SelectWindow
RenameWindow
KillWindow
Close a window and end the programs in its panes.
SplitWindow
ListPanes
SelectPane
Focus a pane, or with -l the pane focused before the current one in
the session’s current window (tmux select-pane -l).
ResizePane
Resize a pane like tmux: -L/-R/-U/-D [N] moves its border N cells
(default 1), -Z toggles zoom, and --sizes sets the parent split’s
weights directly.
Fields
SynchronizePanes
Turn tmux-style synchronize-panes on or off for a window, or toggle it when no state is given. Prints the resulting state.
SendKeys
CapturePane
KillPane
Close a pane and end its program.
DisplayPopup
Fields
KillPopup
Close a popup and end the programs in it.
DisplayMessage
Show a message in the status line of the clients showing the target
pane’s session (or of client -c) for a few seconds, like tmux. -p
prints it instead. The message may use #S, #I, #W, #D, #T,
#{pane_current_path} and #{pane_current_command}.
Fields
client: Option<NonZeroU64>SetEnvironment
Set an environment variable for panes created later in a session, or in
every session with -g, like tmux. -u unsets it.
ShowEnvironment
Print a session’s environment (or the global one with -g) as
NAME=VALUE lines, or one variable when NAME is given.
Trait Implementations§
Source§impl FromArgMatches for Command
impl FromArgMatches for Command
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 Command
impl Subcommand for Command
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 Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.