Skip to content

Commit a441181

Browse files
reyortiz3claude
andcommitted
Fix exhaustive lint errors in status switch statements
Add all WorkloadStatus cases to the switches in list and status commands to satisfy the exhaustive linter. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent dd375df commit a441181

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

cmd/thv/app/list.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ func printTextOutput(workloadList []core.Workload) {
172172
status = "⚠️ " + status
173173
case rt.WorkloadStatusPolicyStopped:
174174
status = "🚫 " + status
175+
case rt.WorkloadStatusRunning, rt.WorkloadStatusStopped, rt.WorkloadStatusError,
176+
rt.WorkloadStatusStarting, rt.WorkloadStatusStopping, rt.WorkloadStatusUnhealthy,
177+
rt.WorkloadStatusRemoving, rt.WorkloadStatusUnknown:
178+
// no indicator for other statuses
175179
}
176180

177181
// Print workload information

cmd/thv/app/status.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ func printStatusTextOutput(workload core.Workload) {
106106
status = "⚠️ " + status
107107
case runtime.WorkloadStatusPolicyStopped:
108108
status = "🚫 " + status
109+
case runtime.WorkloadStatusRunning, runtime.WorkloadStatusStopped, runtime.WorkloadStatusError,
110+
runtime.WorkloadStatusStarting, runtime.WorkloadStatusStopping, runtime.WorkloadStatusUnhealthy,
111+
runtime.WorkloadStatusRemoving, runtime.WorkloadStatusUnknown:
112+
// no indicator for other statuses
109113
}
110114

111115
// Print workload information in key-value format

0 commit comments

Comments
 (0)