From 734a6b68f3699788039a256f9d137bc050ace4a7 Mon Sep 17 00:00:00 2001 From: Yonatan Sasson <107778824+Yuni-sa@users.noreply.github.com> Date: Sun, 5 Nov 2023 12:16:56 +0200 Subject: [PATCH] fix: Resolve panic error due to redefined flag in kor (#125) --- cmd/kor/root.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/kor/root.go b/cmd/kor/root.go index 58860b90..a31f2623 100644 --- a/cmd/kor/root.go +++ b/cmd/kor/root.go @@ -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 {