mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-15 19:28:00 +01:00
Rename "rec" command to "record", add "rec" alias
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user