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

Function taskInspectTargetForID

internal/cli/task.go:192–202  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

190)
191
192func taskInspectTargetForID(id string) taskInspectTarget {
193 trimmed := strings.TrimSpace(id)
194 switch {
195 case strings.HasPrefix(trimmed, "task_"), strings.HasPrefix(trimmed, "task-"):
196 return taskInspectTargetTask
197 case strings.HasPrefix(trimmed, "run_"), strings.HasPrefix(trimmed, "run-"):
198 return taskInspectTargetRun
199 default:
200 return ""
201 }
202}
203
204func cliNow(now func() time.Time) time.Time {
205 if now == nil {

Callers 1

newTaskInspectCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected