mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 03:38:03 +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)]
|
#[derive(Debug, Subcommand)]
|
||||||
pub enum Commands {
|
pub enum Commands {
|
||||||
/// Record a terminal session
|
/// Record a terminal session
|
||||||
Rec(Record),
|
#[clap(visible_alias = "rec")]
|
||||||
|
Record(Record),
|
||||||
|
|
||||||
/// Stream a terminal session
|
/// Stream a terminal session
|
||||||
Stream(Stream),
|
Stream(Stream),
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ fn main() -> ExitCode {
|
|||||||
crate::config::check_legacy_config_file();
|
crate::config::check_legacy_config_file();
|
||||||
|
|
||||||
match cli.command {
|
match cli.command {
|
||||||
Commands::Rec(cmd) => {
|
Commands::Record(cmd) => {
|
||||||
let cmd = Session {
|
let cmd = Session {
|
||||||
output_file: Some(cmd.file),
|
output_file: Some(cmd.file),
|
||||||
rec_input: cmd.rec_input,
|
rec_input: cmd.rec_input,
|
||||||
|
|||||||
Reference in New Issue
Block a user