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

Function newTaskProfileInspectCommand

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

Source from the content-addressed store, hash-verified

669}
670
671func newTaskProfileInspectCommand(deps commandDeps) *cobra.Command {
672 return &cobra.Command{
673 Use: "inspect <id>",
674 Short: "Show one task execution profile",
675 Args: exactOneNonBlankArg(),
676 RunE: func(cmd *cobra.Command, args []string) error {
677 client, err := clientFromDeps(deps)
678 if err != nil {
679 return err
680 }
681 profile, err := client.GetTaskExecutionProfile(cmd.Context(), args[0])
682 if err != nil {
683 return err
684 }
685 return writeCommandOutput(cmd, taskExecutionProfileBundle(&profile))
686 },
687 }
688}
689
690func newTaskProfileUpdateCommand(deps commandDeps) *cobra.Command {
691 var profileRaw string

Callers 1

newTaskProfileCommandFunction · 0.85

Calls 5

exactOneNonBlankArgFunction · 0.85
clientFromDepsFunction · 0.85
writeCommandOutputFunction · 0.85

Tested by

no test coverage detected