use clap::{Parser, Subcommand};
const DEFAULT_HISTORY: usize = 10000;
#[derive(Parser)]
#[command(name = "retach", version, about = "Terminal multiplexer with native scrollback")]
pub struct Cli {
#[command(subcommand)]
pub command: Command,
}
#[derive(Subcommand)]
pub enum Command {
Open {
name: String,
#[arg(long, default_value_t = DEFAULT_HISTORY)]
history: usize,
},
New {
name: Option<String>,
#[arg(long, default_value_t = DEFAULT_HISTORY)]
history: usize,
},
Attach {
name: String,
},
List,
Kill {
name: String,
},
#[command(hide = true)]
Server,
}