diff --git a/pkg/cmd/deployment.go b/pkg/cmd/deployment.go index 70a04c7..5dcfc20 100644 --- a/pkg/cmd/deployment.go +++ b/pkg/cmd/deployment.go @@ -27,6 +27,7 @@ func newCmdCostDeployment(streams genericclioptions.IOStreams) *cobra.Command { cmd := &cobra.Command{ Use: "deployment", Short: "view cost information aggregated by deployment", + Aliases: []string{"deploy"}, RunE: func(c *cobra.Command, args []string) error { if err := kubeO.Complete(c, args); err != nil { return err diff --git a/pkg/cmd/namespace.go b/pkg/cmd/namespace.go index 7eb7987..052ff45 100644 --- a/pkg/cmd/namespace.go +++ b/pkg/cmd/namespace.go @@ -24,6 +24,7 @@ func newCmdCostNamespace(streams genericclioptions.IOStreams) *cobra.Command { cmd := &cobra.Command{ Use: "namespace", Short: "view cost information aggregated by namespace", + Aliases: []string{"ns"}, RunE: func(c *cobra.Command, args []string) error { if err := kubeO.Complete(c, args); err != nil { return err diff --git a/pkg/cmd/node.go b/pkg/cmd/node.go index 8d81936..0400e30 100644 --- a/pkg/cmd/node.go +++ b/pkg/cmd/node.go @@ -24,6 +24,7 @@ func newCmdCostNode(streams genericclioptions.IOStreams) *cobra.Command { cmd := &cobra.Command{ Use: "node", Short: "view cost information by nodes", + Aliases: []string{"no"}, RunE: func(c *cobra.Command, args []string) error { if err := kubeO.Complete(c, args); err != nil { return err diff --git a/pkg/cmd/pod.go b/pkg/cmd/pod.go index 958a3f7..25da674 100644 --- a/pkg/cmd/pod.go +++ b/pkg/cmd/pod.go @@ -26,6 +26,7 @@ func newCmdCostPod(streams genericclioptions.IOStreams) *cobra.Command { cmd := &cobra.Command{ Use: "pod", Short: "view cost information aggregated by pod", + Aliases: []string{"po"}, RunE: func(c *cobra.Command, args []string) error { if err := kubeO.Complete(c, args); err != nil { return err