(deps commandDeps)
| 864 | } |
| 865 | |
| 866 | func newTaskNotificationShowCommand(deps commandDeps) *cobra.Command { |
| 867 | return &cobra.Command{ |
| 868 | Use: "show <task-id> <subscription-id>", |
| 869 | Short: "Show one bridge terminal notification subscription", |
| 870 | Args: exactTwoNonBlankArgs(), |
| 871 | RunE: func(cmd *cobra.Command, args []string) error { |
| 872 | client, err := clientFromDeps(deps) |
| 873 | if err != nil { |
| 874 | return err |
| 875 | } |
| 876 | subscription, err := client.GetTaskBridgeNotificationSubscription( |
| 877 | cmd.Context(), |
| 878 | args[0], |
| 879 | args[1], |
| 880 | ) |
| 881 | if err != nil { |
| 882 | return err |
| 883 | } |
| 884 | return writeCommandOutput(cmd, taskBridgeNotificationSubscriptionBundle(&subscription)) |
| 885 | }, |
| 886 | } |
| 887 | } |
| 888 | |
| 889 | func newTaskNotificationDeleteCommand(deps commandDeps) *cobra.Command { |
| 890 | return &cobra.Command{ |
no test coverage detected