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

Function taskBlockKeyValues

internal/cli/task.go:3228–3243  ·  view source on GitHub ↗
(item TaskBlockRecord)

Source from the content-addressed store, hash-verified

3226}
3227
3228func taskBlockKeyValues(item TaskBlockRecord) []keyValue {
3229 return []keyValue{
3230 {Label: "ID", Value: stringOrDash(item.ID)},
3231 {Label: taskTaskIDValue, Value: stringOrDash(item.TaskID)},
3232 {Label: taskWorkspaceValue, Value: stringOrDash(item.WorkspaceID)},
3233 {Label: taskKindValue, Value: stringOrDash(string(item.Kind))},
3234 {Label: taskReasonValue, Value: stringOrDash(item.Reason)},
3235 {Label: "Details", Value: stringOrDash(compactJSON(item.Details))},
3236 {Label: taskCreatedByValue, Value: stringOrDash(formatTaskActor(item.CreatedBy))},
3237 {Label: taskCreatedValue, Value: stringOrDash(formatTime(item.CreatedAt))},
3238 {Label: "Expires", Value: stringOrDash(formatTimePtr(item.ExpiresAt))},
3239 {Label: "Cleared", Value: stringOrDash(formatTimePtr(item.ClearedAt))},
3240 {Label: "Cleared By", Value: stringOrDash(formatTaskActorPtr(item.ClearedBy))},
3241 {Label: "Clear Note", Value: stringOrDash(item.ClearNote)},
3242 }
3243}
3244
3245func taskBlockToonFields() []string {
3246 return []string{

Callers 1

taskBlockBundleFunction · 0.85

Calls 6

stringOrDashFunction · 0.85
formatTaskActorFunction · 0.85
formatTimeFunction · 0.85
formatTimePtrFunction · 0.85
formatTaskActorPtrFunction · 0.85
compactJSONFunction · 0.70

Tested by

no test coverage detected