Skip to content

Commit

Permalink
Fixing up case for flag
Browse files Browse the repository at this point in the history
  • Loading branch information
CGoodwin90 committed Dec 15, 2023
1 parent b7c00b7 commit f94f422
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions cmd/notificationsemail.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions cmd/notificationsrocketchat.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions cmd/notificationsslack.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions cmd/notificationsteams.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions cmd/notificationswebhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit f94f422

Please sign in to comment.