Skip to content

Commit

Permalink
fix: update delete email notification
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybellwood committed Dec 15, 2023
1 parent 6705423 commit 9d677c6
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cmd/notificationsemail.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@ var deleteProjectEmailNotificationCmd = &cobra.Command{
}

var deleteEmailNotificationCmd = &cobra.Command{
Use: "webhook",
Aliases: []string{"w"},
Short: "Delete a email notification from Lagoon",
Use: "email",
Aliases: []string{"e"},
Short: "Delete an email notification from Lagoon",
PreRunE: func(_ *cobra.Command, _ []string) error {
return validateTokenE(lagoonCLIConfig.Current)
},
Expand Down
2 changes: 1 addition & 1 deletion docs/commands/lagoon_delete_notification.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Delete notifications or delete notifications from projects
### SEE ALSO

* [lagoon delete](lagoon_delete.md) - Delete a project, or delete notifications and variables from projects or environments
* [lagoon delete notification email](lagoon_delete_notification_email.md) - Delete an email notification from Lagoon
* [lagoon delete notification microsoftteams](lagoon_delete_notification_microsoftteams.md) - Delete a Microsoft Teams notification from Lagoon
* [lagoon delete notification project-email](lagoon_delete_notification_project-email.md) - Delete a email notification from a project
* [lagoon delete notification project-microsoftteams](lagoon_delete_notification_project-microsoftteams.md) - Delete a Microsoft Teams notification from a project
Expand All @@ -40,6 +41,5 @@ Delete notifications or delete notifications from projects
* [lagoon delete notification project-webhook](lagoon_delete_notification_project-webhook.md) - Delete a webhook notification from a project
* [lagoon delete notification rocketchat](lagoon_delete_notification_rocketchat.md) - Delete a RocketChat notification from Lagoon
* [lagoon delete notification slack](lagoon_delete_notification_slack.md) - Delete a Slack notification from Lagoon
* [lagoon delete notification webhook](lagoon_delete_notification_webhook.md) - Delete a email notification from Lagoon
* [lagoon delete notification webhook](lagoon_delete_notification_webhook.md) - Delete a webhook notification from Lagoon

40 changes: 40 additions & 0 deletions docs/commands/lagoon_delete_notification_email.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
## lagoon delete notification email

Delete an email notification from Lagoon

### Synopsis

Delete an email notification from Lagoon

```
lagoon delete notification email [flags]
```

### Options

```
-h, --help help for email
-n, --name string The name of the notification
```

### Options inherited from parent commands

```
--config-file string Path to the config file to use (must be *.yml or *.yaml)
--debug Enable debugging output (if supported)
-e, --environment string Specify an environment to use
--force Force yes on prompts (if supported)
-l, --lagoon string The Lagoon instance to interact with
--no-header No header on table (if supported)
--output-csv Output as CSV (if supported)
--output-json Output as JSON (if supported)
--pretty Make JSON pretty (if supported)
-p, --project string Specify a project to use
--skip-update-check Skip checking for updates
-i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication
```

### SEE ALSO

* [lagoon delete notification](lagoon_delete_notification.md) - Delete notifications or delete notifications from projects

0 comments on commit 9d677c6

Please sign in to comment.