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