Skip to content

Commit

Permalink
fix: Resolve panic error due to redefined flag in kor (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuni-sa authored Nov 5, 2023
1 parent 5a55f44 commit 734a6b6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmd/kor/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ func Execute() {
rootCmd.PersistentFlags().StringVar(&opts.Token, "slack-auth-token", "", "Slack auth token to send notifications to. --slack-auth-token requires --slack-channel to be set.")
rootCmd.PersistentFlags().BoolVar(&opts.DeleteFlag, "delete", false, "Delete unused resources")
rootCmd.PersistentFlags().BoolVar(&opts.NoInteractive, "no-interactive", false, "Do not prompt for confirmation when deleting resources. Be careful using this flag!")
rootCmd.PersistentFlags().StringVar(&opts.WebhookURL, "slack-webhook-url", "", "Slack webhook URL to send notifications to")
rootCmd.PersistentFlags().StringVar(&opts.Channel, "slack-channel", "", "Slack channel to send notifications to. --slack-channel requires --slack-auth-token to be set.")
rootCmd.PersistentFlags().StringVar(&opts.Token, "slack-auth-token", "", "Slack auth token to send notifications to. --slack-auth-token requires --slack-channel to be set.")
addFilterOptionsFlag(rootCmd, filterOptions)

if err := filterOptions.Validate(); err != nil {
Expand Down

0 comments on commit 734a6b6

Please sign in to comment.