MCPcopy Create free account
hub / github.com/compozy/agh / newTaskNotificationShowCommand

Function newTaskNotificationShowCommand

internal/cli/task.go:866–887  ·  view source on GitHub ↗
(deps commandDeps)

Source from the content-addressed store, hash-verified

864}
865
866func 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
889func newTaskNotificationDeleteCommand(deps commandDeps) *cobra.Command {
890 return &cobra.Command{

Callers 1

Tested by

no test coverage detected