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

Function newTaskProfileDeleteCommand

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

Source from the content-addressed store, hash-verified

715}
716
717func newTaskProfileDeleteCommand(deps commandDeps) *cobra.Command {
718 return &cobra.Command{
719 Use: taskDeleteIDValue,
720 Short: "Delete one task execution profile",
721 Args: exactOneNonBlankArg(),
722 RunE: func(cmd *cobra.Command, args []string) error {
723 client, err := clientFromDeps(deps)
724 if err != nil {
725 return err
726 }
727 if err := client.DeleteTaskExecutionProfile(cmd.Context(), args[0]); err != nil {
728 return err
729 }
730 return writeCommandOutput(cmd, taskExecutionProfileDeleteBundle(args[0]))
731 },
732 }
733}
734
735func buildTaskExecutionProfileRequest(
736 taskID string,

Callers 1

newTaskProfileCommandFunction · 0.85

Calls 5

exactOneNonBlankArgFunction · 0.85
clientFromDepsFunction · 0.85
writeCommandOutputFunction · 0.85

Tested by

no test coverage detected