Skip to content

Commit ab34cf3

Browse files
authored
Support aliases in command namespaces (#1406)
1 parent 5c18251 commit ab34cf3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

plugins/components/conversionlayer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ func convertSubcommands(subcommands []Namespace, nameSpaces ...string) ([]cli.Co
4444
for _, ns := range subcommands {
4545
nameSpaceCommand := cli.Command{
4646
Name: ns.Name,
47+
Aliases: ns.Aliases,
4748
Usage: ns.Description,
4849
Hidden: ns.Hidden,
4950
Category: ns.Category,

plugins/components/structure.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ func CreateEmbeddedApp(name string, commands []Command, namespaces ...Namespace)
3030

3131
type Namespace struct {
3232
Name string
33+
Aliases []string
3334
Description string
3435
Hidden bool
3536
Category string

0 commit comments

Comments
 (0)