getStatusIcon 获取状态图标
(status StepStatus)
| 396 | |
| 397 | // getStatusIcon 获取状态图标 |
| 398 | func getStatusIcon(status StepStatus) string { |
| 399 | switch status { |
| 400 | case StepStatusPending: |
| 401 | return "⏳" |
| 402 | case StepStatusRunning: |
| 403 | return "🔄" |
| 404 | case StepStatusCompleted: |
| 405 | return "✅" |
| 406 | case StepStatusFailed: |
| 407 | return "❌" |
| 408 | case StepStatusSkipped: |
| 409 | return "⏭️" |
| 410 | default: |
| 411 | return "" |
| 412 | } |
| 413 | } |
| 414 | |
| 415 | // ValidatePlan 验证执行计划 |
| 416 | func (g *Generator) ValidatePlan(plan *ExecutionPlan) []error { |