Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: aliases for project notifications #341

Merged
merged 1 commit into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading