From 6595b1141c972ea8d00f9683f6a4cab10fab16f5 Mon Sep 17 00:00:00 2001 From: Ben Jackson Date: Fri, 12 Apr 2024 07:37:54 +1000 Subject: [PATCH] fix: aliases for project notifications (#341) --- cmd/notificationsemail.go | 2 +- cmd/notificationsteams.go | 2 +- cmd/notificationswebhook.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/notificationsemail.go b/cmd/notificationsemail.go index ae4cb12b..6d9df29c 100644 --- a/cmd/notificationsemail.go +++ b/cmd/notificationsemail.go @@ -249,7 +249,7 @@ var listAllEmailsCmd = &cobra.Command{ var deleteProjectEmailNotificationCmd = &cobra.Command{ Use: "project-email", - Aliases: []string{"pr"}, + Aliases: []string{"pe"}, Short: "Delete a email notification from a project", PreRunE: func(_ *cobra.Command, _ []string) error { return validateTokenE(lagoonCLIConfig.Current) diff --git a/cmd/notificationsteams.go b/cmd/notificationsteams.go index 971b4720..bb8c0631 100644 --- a/cmd/notificationsteams.go +++ b/cmd/notificationsteams.go @@ -250,7 +250,7 @@ var listAllMicrosoftTeamsCmd = &cobra.Command{ var deleteProjectMicrosoftTeamsNotificationCmd = &cobra.Command{ Use: "project-microsoftteams", - Aliases: []string{"pr"}, + Aliases: []string{"pm"}, Short: "Delete a Microsoft Teams notification from a project", PreRunE: func(_ *cobra.Command, _ []string) error { return validateTokenE(lagoonCLIConfig.Current) diff --git a/cmd/notificationswebhook.go b/cmd/notificationswebhook.go index 22b3439b..86f1100d 100644 --- a/cmd/notificationswebhook.go +++ b/cmd/notificationswebhook.go @@ -100,7 +100,7 @@ It does not configure a project to send notifications to webhook though, you nee var addProjectNotificationWebhookCmd = &cobra.Command{ Use: "project-webhook", - Aliases: []string{"pe"}, + Aliases: []string{"pw"}, Short: "Add a webhook notification to a project", Long: `Add a webhook notification to a project This command is used to add an existing webhook notification in Lagoon to a project.`, @@ -250,7 +250,7 @@ var listAllWebhooksCmd = &cobra.Command{ var deleteProjectWebhookNotificationCmd = &cobra.Command{ Use: "project-webhook", - Aliases: []string{"pr"}, + Aliases: []string{"pw"}, Short: "Delete a webhook notification from a project", PreRunE: func(_ *cobra.Command, _ []string) error { return validateTokenE(lagoonCLIConfig.Current)