Rename "rec" command to "record", add "rec" alias

This commit is contained in:
Marcin Kulik
2025-06-04 08:50:09 +02:00
parent b84ee319c1
commit 5051cc78bc
2 changed files with 3 additions and 2 deletions

View File

@@ -22,7 +22,8 @@ pub struct Cli {
#[derive(Debug, Subcommand)]
pub enum Commands {
/// Record a terminal session
Rec(Record),
#[clap(visible_alias = "rec")]
Record(Record),
/// Stream a terminal session
Stream(Stream),

View File

@@ -40,7 +40,7 @@ fn main() -> ExitCode {
crate::config::check_legacy_config_file();
match cli.command {
Commands::Rec(cmd) => {
Commands::Record(cmd) => {
let cmd = Session {
output_file: Some(cmd.file),
rec_input: cmd.rec_input,