feat: Shows subcommand aliases in help text (#918) (#1409)

This commit is contained in:
Luke Stadem 2022-05-10 09:36:57 -05:00 committed by GitHub
parent e6cbd1195c
commit a017a6512d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,11 +74,11 @@ pub enum SessionCommand {
#[derive(Debug, Subcommand, Clone, Serialize, Deserialize)]
pub enum Sessions {
/// List active sessions
#[clap(alias = "ls")]
#[clap(visible_alias = "ls")]
ListSessions,
/// Attach to a session
#[clap(alias = "a")]
#[clap(visible_alias = "a")]
Attach {
/// Name of the session to attach to.
session_name: Option<String>,
@ -97,14 +97,14 @@ pub enum Sessions {
},
/// Kill the specific session
#[clap(alias = "k")]
#[clap(visible_alias = "k")]
KillSession {
/// Name of target session
target_session: Option<String>,
},
/// Kill all sessions
#[clap(alias = "ka")]
#[clap(visible_alias = "ka")]
KillAllSessions {
/// Automatic yes to prompts
#[clap(short, long)]