pub enum Commands {
Show 25 variants
Start {
name: Option<String>,
},
Stop,
Replay {
session: String,
dry_run: bool,
step: bool,
skip: Option<Vec<u32>>,
from: Option<u32>,
force: bool,
skip_pattern: Option<Vec<String>>,
cwd: bool,
danger_policy: Option<DangerPolicy>,
},
List {
tag: Vec<String>,
tag_all: bool,
},
Show {
session: String,
grep: Option<String>,
},
Delete {
session: Option<String>,
force: bool,
all: bool,
},
Demo,
Doctor,
Copy {
source: String,
name: String,
},
Rename {
old: String,
new: String,
},
Edit {
session: String,
},
Tag {
session: String,
tags: Vec<String>,
},
Tags {
action: Option<TagsAction>,
},
Export {
session: String,
format: ExportFormat,
output: Option<PathBuf>,
parameterize: bool,
params: Vec<String>,
},
Status,
Hook {
hook_type: HookType,
arg: String,
},
Import {
file: PathBuf,
name: Option<String>,
},
Init {
shell: Option<Shell>,
},
Config {
get: Option<String>,
set: Option<Vec<String>>,
edit: bool,
path: bool,
list: bool,
},
Search {
pattern: String,
regex: bool,
tag: Vec<String>,
},
Diff {
session1: String,
session2: String,
},
Stats,
Alias {
name: Option<String>,
session: Option<String>,
list: bool,
remove: Option<String>,
},
Completions {
shell: Shell,
},
Ui,
}Expand description
Available commands for managing terminal recordings.
Variants§
Start
Start recording a new session
Stop
Stop the current recording
Replay
Replay a recorded session
Fields
danger_policy: Option<DangerPolicy>Policy for handling dangerous commands (skip, abort, allow)
List
List all recorded sessions
Fields
Show
Show details of a session
Delete
Delete a session
Fields
Demo
Run an interactive walkthrough of rec’s features
Doctor
Diagnose installation and configuration issues
Copy
Copy a session with a new name
Rename
Rename a session
Edit
Edit a session in $EDITOR
Tag
Add or remove tags on a session
Tags
Manage tags across sessions
Fields
action: Option<TagsAction>Export
Export a session to another format
Fields
format: ExportFormatOutput format
Status
Show current recording status
Hook
Internal: Handle shell hook events (preexec, precmd)
This command is called by shell hooks to capture commands. Not intended for direct user invocation.
Fields
Import
Import a session from a bash script or shell history file
Fields
Init
Initialize shell hooks for automatic recording
Config
Show or modify configuration
Fields
Search
Search across all recorded sessions
Fields
Diff
Compare commands between two sessions
Stats
Show recording statistics
Alias
Create or manage named aliases for sessions
Fields
Completions
Generate shell completions
Ui
Launch interactive terminal UI (requires –features tui)
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 subcommand