From 669a34a9bd7cbbd92203d5a18260de3d4aa0b7f2 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 8 Sep 2023 18:15:01 +0300 Subject: feat: add aliases to some subcommands create = new remove = delete stop = shutdown Sponsored-by: author --- src/bin/vmadm.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/vmadm.rs b/src/bin/vmadm.rs index a10d3d9..159a172 100644 --- a/src/bin/vmadm.rs +++ b/src/bin/vmadm.rs @@ -20,6 +20,7 @@ struct Cli { #[derive(Debug, Parser)] enum Command { + #[clap(visible_alias = "create")] New { #[clap(flatten)] common: CommonOptions, @@ -51,6 +52,7 @@ enum Command { common: CommonOptions, }, + #[clap(visible_alias = "remove")] Delete { #[clap(flatten)] common: CommonOptions, @@ -65,6 +67,7 @@ enum Command { specs: Vec, }, + #[clap(visible_alias = "stop")] Shutdown { #[clap(flatten)] common: CommonOptions, -- cgit v1.2.1