Skip to content

Commit

Permalink
fix: aliases for project notifications (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon committed Apr 11, 2024
1 parent 86458ac commit 6595b11
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/notificationsemail.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion cmd/notificationsteams.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions cmd/notificationswebhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.`,
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 6595b11

Please sign in to comment.