(id string, asOf time.Time)
| 209 | } |
| 210 | |
| 211 | func taskInspectUnknownIDRecord(id string, asOf time.Time) TaskInspectRecord { |
| 212 | return TaskInspectRecord{ |
| 213 | Target: providerModelAvailabilityUnknown, |
| 214 | NextAction: providerModelAvailabilityUnknown, |
| 215 | AsOf: asOf, |
| 216 | Diagnostics: []contract.DiagnosticItem{ |
| 217 | diagnosticitems.NewItem( |
| 218 | "task.inspect.id_format_unknown", |
| 219 | diagnosticcontract.CodeIDFormatUnknown, |
| 220 | diagnosticcontract.CategoryTask, |
| 221 | "Task inspect id format is unknown", |
| 222 | "Task inspect accepts ids with task_ / task- or run_ / run- prefixes.", |
| 223 | diagnosticcontract.SeverityError, |
| 224 | diagnosticcontract.FreshnessLive, |
| 225 | diagnosticitems.WithEvidence(map[string]any{"id": id}), |
| 226 | ), |
| 227 | }, |
| 228 | } |
| 229 | } |
| 230 | |
| 231 | func newTaskCommand(deps commandDeps) *cobra.Command { |
| 232 | cmd := &cobra.Command{ |
no outgoing calls
no test coverage detected