String returns a human-readable name for the status.
()
| 96 | |
| 97 | // String returns a human-readable name for the status. |
| 98 | func (s taskStatus) String() string { |
| 99 | switch s { |
| 100 | case taskRunning: |
| 101 | return "running" |
| 102 | case taskCompleted: |
| 103 | return "completed" |
| 104 | case taskStopped: |
| 105 | return "stopped" |
| 106 | case taskFailed: |
| 107 | return "failed" |
| 108 | default: |
| 109 | return "unknown" |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | // task tracks a single background sub-agent execution. |
| 114 | type task struct { |
no outgoing calls