From 6474470dfd9d821b4ecb498e5c92f667c828c94e Mon Sep 17 00:00:00 2001 From: Eric Stroczynski Date: Tue, 30 Jun 2020 09:11:09 -0700 Subject: [PATCH] cmd/operator-sdk/run/packagemanifests: alias command name as 'pm' --- changelog/fragments/alias-run-packagemanifests.yaml | 3 +++ cmd/operator-sdk/run/packagemanifests/packagemanifests.go | 1 + 2 files changed, 4 insertions(+) create mode 100644 changelog/fragments/alias-run-packagemanifests.yaml diff --git a/changelog/fragments/alias-run-packagemanifests.yaml b/changelog/fragments/alias-run-packagemanifests.yaml new file mode 100644 index 0000000000..04e970d6c7 --- /dev/null +++ b/changelog/fragments/alias-run-packagemanifests.yaml @@ -0,0 +1,3 @@ +entries: + - description: Alias `run packagemanifests` as `run pm` + kind: addition diff --git a/cmd/operator-sdk/run/packagemanifests/packagemanifests.go b/cmd/operator-sdk/run/packagemanifests/packagemanifests.go index 184fb44e9a..93221439e1 100644 --- a/cmd/operator-sdk/run/packagemanifests/packagemanifests.go +++ b/cmd/operator-sdk/run/packagemanifests/packagemanifests.go @@ -39,6 +39,7 @@ func NewCmd() *cobra.Command { Short: "Deploy an Operator in the package manifests format with OLM", Long: `'run packagemanifests' deploys an Operator's package manifests with OLM. The command's argument must be set to a valid package manifests root directory, ex. '/packagemanifests'.`, + Aliases: []string{"pm"}, RunE: func(cmd *cobra.Command, args []string) error { if len(args) > 0 { if len(args) > 1 {