Skip to content

Commit

Permalink
add aliases to main commands (#101)
Browse files Browse the repository at this point in the history
* add aliases for cluster, sandbox and routergroup

* add alias to resource plugin
  • Loading branch information
davixcky authored Jan 31, 2024
1 parent 79267ae commit e65b710
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
5 changes: 3 additions & 2 deletions internal/command/cluster/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ import (
func New(api *config.API) *cobra.Command {
cfg := &config.Cluster{API: api}
cmd := &cobra.Command{
Use: "cluster",
Short: "Manage connections between your Kubernetes clusters and Signadot",
Use: "cluster",
Short: "Manage connections between your Kubernetes clusters and Signadot",
Aliases: []string{"cl"},
}

// Subcommands
Expand Down
5 changes: 3 additions & 2 deletions internal/command/resourceplugin/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ func New(api *config.API) *cobra.Command {
cfg := &config.ResourcePlugin{API: api}

cmd := &cobra.Command{
Use: "resourceplugin",
Short: "Inspect and manipulate resource plugins",
Use: "resourceplugin",
Short: "Inspect and manipulate resource plugins",
Aliases: []string{"rp"},
}

// Subcommands
Expand Down
5 changes: 3 additions & 2 deletions internal/command/routegroup/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ func New(api *config.API) *cobra.Command {
cfg := &config.RouteGroup{API: api}

cmd := &cobra.Command{
Use: "routegroup",
Short: "Inspect and manipulate routegroups",
Use: "routegroup",
Short: "Inspect and manipulate routegroups",
Aliases: []string{"rg"},
}

// Subcommands
Expand Down
5 changes: 3 additions & 2 deletions internal/command/sandbox/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ func New(api *config.API) *cobra.Command {
cfg := &config.Sandbox{API: api}

cmd := &cobra.Command{
Use: "sandbox",
Short: "Inspect and manipulate sandboxes",
Use: "sandbox",
Short: "Inspect and manipulate sandboxes",
Aliases: []string{"sb"},
}

// Subcommands
Expand Down

0 comments on commit e65b710

Please sign in to comment.