pub enum Commands {
Show 34 variants
Run {
command: String,
args: Vec<String>,
cwd: Option<String>,
cols: u16,
rows: u16,
},
Snap {
elements: bool,
accessibility: bool,
interactive_only: bool,
region: Option<String>,
strip_ansi: bool,
include_cursor: bool,
},
Click {
element_ref: String,
double: bool,
},
Fill {
element_ref: String,
value: String,
},
Key {
key: Option<String>,
text: Option<String>,
hold: bool,
release: bool,
},
Wait {
params: WaitParams,
},
Kill,
Restart,
Ls,
Status {
verbose: bool,
},
Select {
element_ref: String,
option: String,
},
MultiSelect {
element_ref: String,
options: Vec<String>,
},
Scroll {
direction: Option<ScrollDirection>,
amount: u16,
element: Option<String>,
to_ref: Option<String>,
},
Focus {
element_ref: String,
},
Clear {
element_ref: String,
},
SelectAll {
element_ref: String,
},
Count {
role: Option<String>,
name: Option<String>,
text: Option<String>,
},
Toggle {
element_ref: String,
on: bool,
off: bool,
},
Debug(DebugCommand),
RecordStart,
RecordStop {
output: Option<String>,
record_format: RecordFormat,
},
RecordStatus,
Trace {
count: usize,
start: bool,
stop: bool,
},
Console {
lines: usize,
clear: bool,
},
Errors {
count: usize,
clear: bool,
},
Resize {
cols: u16,
rows: u16,
},
Attach {
session_id: String,
interactive: bool,
},
Daemon(DaemonCommand),
Version,
Env,
Assert {
condition: String,
},
Cleanup {
all: bool,
},
Find {
params: FindParams,
},
Completions {
shell: Shell,
},
}Variants§
Run
Run a new TUI application in a virtual terminal
Fields
Snap
Take a snapshot of the current screen state
Fields
Click
Click an element by reference
Fields
Fill
Set the value of an input element
Key
Send keystrokes or type text
Fields
Wait
Wait for a condition to be met
Fields
params: WaitParamsKill
Terminate the current session
Restart
Restart the TUI application
Ls
List all active sessions
Status
Check daemon status
Select
Select an option from a dropdown or list
MultiSelect
Select multiple options in a multi-select list
Scroll
Scroll the terminal viewport
Fields
direction: Option<ScrollDirection>Scroll direction (up, down, left, right) - not required if –to is used
Focus
Set focus to an element
Clear
Clear an input element’s value
SelectAll
Select all text in an input element
Count
Count elements matching criteria
Fields
Toggle
Toggle a checkbox or radio button
Fields
Debug(DebugCommand)
Debugging subcommands for development and troubleshooting
RecordStart
Start recording screen activity
RecordStop
Stop recording and save output
RecordStatus
Check recording status
Trace
View performance trace data
Fields
Console
View console output
Errors
View captured errors
Resize
Resize the terminal window
Attach
Attach to an existing session
Fields
Daemon(DaemonCommand)
Daemon lifecycle management
Version
Show version information for CLI and daemon
Env
Show environment diagnostics
Assert
Assert a condition for testing/scripting
Cleanup
Clean up stale sessions
Find
Find elements by semantic properties (role, name, text)
Fields
params: FindParamsCompletions
Generate shell completion scripts
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
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 Commands
impl Subcommand for Commands
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 Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnwindSafe for Commands
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.