Skip to content

Commit

Permalink
Hide deprecated flag from help (#3046)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmjb authored Apr 11, 2024
1 parent 39a6b36 commit a089bd0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/cli/app/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
package provider

import (
"os"

"github.com/spf13/cobra"

"github.com/stacklok/minder/cmd/cli/app"
Expand All @@ -39,6 +41,10 @@ func init() {
ProviderCmd.PersistentFlags().StringP("project", "j", "", "ID of the project")
// TODO: get rid of this
ProviderCmd.PersistentFlags().StringP("provider", "p", "", "DEPRECATED - use `class` flag of `enroll` instead")
if err := ProviderCmd.PersistentFlags().MarkHidden("provider"); err != nil {
ProviderCmd.Printf("Error binding flag: %s", err)
os.Exit(1)
}
}

func getImplementsAsStrings(p *minderv1.Provider) []string {
Expand Down

0 comments on commit a089bd0

Please sign in to comment.