uselagoon / lagoon-cli

A CLI for Lagoon - Docker Build and Deploy System for Kubernetes
https://uselagoon.github.io/lagoon-cli
MIT License
24 stars 15 forks source link

Lagoon cli delete Team notification from project doesn't work #340

Closed vincenzodnp closed 5 months ago

vincenzodnp commented 5 months ago

Describe the bug With Lagoon cli is not possible to remove a Microsoft Team notification from a project. The usual syntax would have been lagoon delete n pm -p <project> -n <notification_name> but the method doesn't take into accoun the notification name.

The error is Error: unknown shorthand flag: 'n' in -n

To Reproduce Steps to reproduce the behavior:

  1. run lagoon delete n pm -p <project> -n <notification_name>
  2. See error Error: unknown shorthand flag: 'n' in -n

Expected behavior Notification being removed from the project

Additional context lagoon v0.20.2 (go-1.16) built 2023-12-06T23:01:32Z

shreddedbacon commented 5 months ago

This might be a bug in the alias for the command as you're using pm but the command has an incorrect pr .

Try use the full command path for now

lagoon delete notification project-microsoftteams --project $project --name $name