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

Function newTaskRunShowCommand

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

Source from the content-addressed store, hash-verified

2404}
2405
2406func newTaskRunShowCommand(deps commandDeps) *cobra.Command {
2407 return &cobra.Command{
2408 Use: "show <run-id>",
2409 Short: "Show a task run",
2410 Args: exactOneNonBlankArg(),
2411 RunE: func(cmd *cobra.Command, args []string) error {
2412 client, err := clientFromDeps(deps)
2413 if err != nil {
2414 return err
2415 }
2416
2417 detail, err := client.GetTaskRun(cmd.Context(), args[0])
2418 if err != nil {
2419 return err
2420 }
2421 return writeCommandOutput(cmd, taskRunDetailBundle(&detail))
2422 },
2423 }
2424}
2425
2426func newTaskRunEnqueueCommand(deps commandDeps) *cobra.Command {
2427 var (

Callers 1

newTaskRunCommandFunction · 0.85

Calls 5

exactOneNonBlankArgFunction · 0.85
clientFromDepsFunction · 0.85
writeCommandOutputFunction · 0.85
taskRunDetailBundleFunction · 0.85
GetTaskRunMethod · 0.65

Tested by

no test coverage detected