Skip to content

Commit

Permalink
Merge pull request #18656 from nak3/prune-suggestfor
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue (batch tested with PRs 18835, 18857, 18641, 18656, 18837).

Remove invalid SuggestFor from prune deployments

This patch makes a tiny change to remove invalid SuggestFor

Since cobra has a suggestion based on Levenshtein distance by default,
removing SuggestFor by this patch is not valid.
  • Loading branch information
openshift-merge-robot authored Mar 7, 2018
2 parents 8f431a0 + d928bc1 commit e752be6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pkg/oc/admin/prune/deployments.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,10 @@ func NewCmdPruneDeployments(f *clientcmd.Factory, parentName, name string, out i
}

cmd := &cobra.Command{
Use: name,
Short: "Remove old completed and failed deployments",
Long: deploymentsLongDesc,
Example: fmt.Sprintf(deploymentsExample, parentName, name),
SuggestFor: []string{"deployment", "deployments"},
Use: name,
Short: "Remove old completed and failed deployments",
Long: deploymentsLongDesc,
Example: fmt.Sprintf(deploymentsExample, parentName, name),
Run: func(cmd *cobra.Command, args []string) {
kcmdutil.CheckErr(opts.Complete(f, cmd, args, out))
kcmdutil.CheckErr(opts.Validate())
Expand Down

0 comments on commit e752be6

Please sign in to comment.