diff --git a/cmd/notificationsemail.go b/cmd/notificationsemail.go index 4a1797e6..ac3f96f2 100644 --- a/cmd/notificationsemail.go +++ b/cmd/notificationsemail.go @@ -39,7 +39,7 @@ It does not configure a project to send notifications to email though, you need if err != nil { return err } - organizationID, err := cmd.Flags().GetUint("organizationID") + organizationID, err := cmd.Flags().GetUint("organization-id") if err != nil { return err } @@ -395,7 +395,7 @@ var updateEmailNotificationCmd = &cobra.Command{ func init() { addNotificationEmailCmd.Flags().StringP("name", "n", "", "The name of the notification") addNotificationEmailCmd.Flags().StringP("email", "E", "", "The email address of the notification") - addNotificationEmailCmd.Flags().Uint("organizationID", 0, "ID of the Organization") + addNotificationEmailCmd.Flags().Uint("organization-id", 0, "ID of the Organization") addProjectNotificationEmailCmd.Flags().StringP("name", "n", "", "The name of the notification") deleteProjectEmailNotificationCmd.Flags().StringP("name", "n", "", "The name of the notification") deleteEmailNotificationCmd.Flags().StringP("name", "n", "", "The name of the notification") diff --git a/cmd/notificationsrocketchat.go b/cmd/notificationsrocketchat.go index 05670da7..c74b76fd 100644 --- a/cmd/notificationsrocketchat.go +++ b/cmd/notificationsrocketchat.go @@ -44,7 +44,7 @@ It does not configure a project to send notifications to RocketChat though, you if err != nil { return err } - organizationID, err := cmd.Flags().GetUint("organizationID") + organizationID, err := cmd.Flags().GetUint("organization-id") if err != nil { return err } @@ -415,7 +415,7 @@ func init() { addNotificationRocketchatCmd.Flags().StringP("name", "n", "", "The name of the notification") addNotificationRocketchatCmd.Flags().StringP("webhook", "w", "", "The webhook URL of the notification") addNotificationRocketchatCmd.Flags().StringP("channel", "c", "", "The channel for the notification") - addNotificationRocketchatCmd.Flags().Uint("organizationID", 0, "ID of the Organization") + addNotificationRocketchatCmd.Flags().Uint("organization-id", 0, "ID of the Organization") addProjectNotificationRocketChatCmd.Flags().StringP("name", "n", "", "The name of the notification") deleteProjectRocketChatNotificationCmd.Flags().StringP("name", "n", "", "The name of the notification") deleteRocketChatNotificationCmd.Flags().StringP("name", "n", "", "The name of the notification") diff --git a/cmd/notificationsslack.go b/cmd/notificationsslack.go index 6e2bb672..4d4074e0 100644 --- a/cmd/notificationsslack.go +++ b/cmd/notificationsslack.go @@ -44,7 +44,7 @@ It does not configure a project to send notifications to Slack though, you need if err != nil { return err } - organizationID, err := cmd.Flags().GetUint("organizationID") + organizationID, err := cmd.Flags().GetUint("organization-id") if err != nil { return err } @@ -415,7 +415,7 @@ func init() { addNotificationSlackCmd.Flags().StringP("name", "n", "", "The name of the notification") addNotificationSlackCmd.Flags().StringP("webhook", "w", "", "The webhook URL of the notification") addNotificationSlackCmd.Flags().StringP("channel", "c", "", "The channel for the notification") - addNotificationSlackCmd.Flags().Uint("organizationID", 0, "ID of the Organization") + addNotificationSlackCmd.Flags().Uint("organization-id", 0, "ID of the Organization") addProjectNotificationSlackCmd.Flags().StringP("name", "n", "", "The name of the notification") deleteProjectSlackNotificationCmd.Flags().StringP("name", "n", "", "The name of the notification") deleteSlackNotificationCmd.Flags().StringP("name", "n", "", "The name of the notification") diff --git a/cmd/notificationsteams.go b/cmd/notificationsteams.go index 4f9b182d..bac5212c 100644 --- a/cmd/notificationsteams.go +++ b/cmd/notificationsteams.go @@ -40,7 +40,7 @@ It does not configure a project to send notifications to Microsoft Teams though, if err != nil { return err } - organizationID, err := cmd.Flags().GetUint("organizationID") + organizationID, err := cmd.Flags().GetUint("organization-id") if err != nil { return err } @@ -396,7 +396,7 @@ var updateMicrosoftTeamsNotificationCmd = &cobra.Command{ func init() { addNotificationMicrosoftTeamsCmd.Flags().StringP("name", "n", "", "The name of the notification") addNotificationMicrosoftTeamsCmd.Flags().StringP("webhook", "w", "", "The webhook URL of the notification") - addNotificationMicrosoftTeamsCmd.Flags().Uint("organizationID", 0, "ID of the Organization") + addNotificationMicrosoftTeamsCmd.Flags().Uint("organization-id", 0, "ID of the Organization") addProjectNotificationMicrosoftTeamsCmd.Flags().StringP("name", "n", "", "The name of the notification") deleteProjectMicrosoftTeamsNotificationCmd.Flags().StringP("name", "n", "", "The name of the notification") deleteMicrosoftTeamsNotificationCmd.Flags().StringP("name", "n", "", "The name of the notification") diff --git a/cmd/notificationswebhook.go b/cmd/notificationswebhook.go index ffa0260a..35021065 100644 --- a/cmd/notificationswebhook.go +++ b/cmd/notificationswebhook.go @@ -40,7 +40,7 @@ It does not configure a project to send notifications to webhook though, you nee if err != nil { return err } - organizationID, err := cmd.Flags().GetUint("organizationID") + organizationID, err := cmd.Flags().GetUint("organization-id") if err != nil { return err } @@ -396,7 +396,7 @@ var updateWebhookNotificationCmd = &cobra.Command{ func init() { addNotificationWebhookCmd.Flags().StringP("name", "n", "", "The name of the notification") addNotificationWebhookCmd.Flags().StringP("webhook", "w", "", "The webhook URL of the notification") - addNotificationWebhookCmd.Flags().Uint("organizationID", 0, "ID of the Organization") + addNotificationWebhookCmd.Flags().Uint("organization-id", 0, "ID of the Organization") addProjectNotificationWebhookCmd.Flags().StringP("name", "n", "", "The name of the notification") deleteProjectWebhookNotificationCmd.Flags().StringP("name", "n", "", "The name of the notification") deleteWebhookNotificationCmd.Flags().StringP("name", "n", "", "The name of the notification")