Skip to content

Commit 4e2fc81

Browse files
committed
Add aliases to namespaces subcommand
Signed-off-by: Maksym Pavlenko <makpav@amazon.com>
1 parent 9d4fc1d commit 4e2fc81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/ctr/commands/namespaces/namespaces.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333
// Command is the cli command for managing namespaces
3434
var Command = cli.Command{
3535
Name: "namespaces",
36-
Aliases: []string{"namespace"},
36+
Aliases: []string{"namespace", "ns"},
3737
Usage: "manage namespaces",
3838
Subcommands: cli.Commands{
3939
createCommand,
@@ -45,6 +45,7 @@ var Command = cli.Command{
4545

4646
var createCommand = cli.Command{
4747
Name: "create",
48+
Aliases: []string{"c"},
4849
Usage: "create a new namespace",
4950
ArgsUsage: "<name> [<key>=<value]",
5051
Description: "create a new namespace. it must be unique",

0 commit comments

Comments
 (0)