Skip to content

Commit

Permalink
Rename the enroll flag from config to provider-config (#3431)
Browse files Browse the repository at this point in the history
Config is already a global flag
  • Loading branch information
jhrozek authored May 27, 2024
1 parent d98a822 commit ebdc80d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/cli/app/provider/provider_enroll.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func EnrollProviderCommand(ctx context.Context, cmd *cobra.Command, _ []string,
owner := viper.GetString("owner")
yesFlag := viper.GetBool("yes")
skipBrowser := viper.GetBool("skip-browser")
cfgFlag := viper.GetString("config")
cfgFlag := viper.GetString("provider-config")

// No longer print usage on returned error, since we've parsed our inputs
// See https://github.com/spf13/cobra/issues/340#issuecomment-374617413
Expand Down Expand Up @@ -368,7 +368,7 @@ func init() {
enrollCmd.Flags().StringP("owner", "o", "", "Owner to filter on for provider resources (Legacy GitHub only)")
enrollCmd.Flags().BoolP("yes", "y", false, "Bypass any yes/no prompts when enrolling a new provider")
enrollCmd.Flags().StringP("class", "c", githubAppProvider.ToString(), "Provider class, defaults to github-app")
enrollCmd.Flags().StringP("config", "f", "", "Path to the provider configuration (or - for stdin)")
enrollCmd.Flags().StringP("provider-config", "f", "", "Path to the provider configuration (or - for stdin)")
enrollCmd.Flags().StringP("name", "n", "", "Name of the new provider. (Only when using a token)")

// Bind flags
Expand Down

0 comments on commit ebdc80d

Please sign in to comment.