MCPcopy Create free account
hub / github.com/continuedev/continue / getStatusColor

Function getStatusColor

extensions/cli/src/ui/JobsSelector.tsx:18–22  ·  view source on GitHub ↗
(status: BackgroundJob["status"])

Source from the content-addressed store, hash-verified

16type ViewMode = "list" | "detail";
17
18function getStatusColor(status: BackgroundJob["status"]): string {
19 if (status === "running" || status === "pending") return "yellow";
20 if (status === "completed") return "green";
21 return "red";
22}
23
24function formatDuration(job: BackgroundJob): string {
25 const endTime = job.endTime ? job.endTime.getTime() : Date.now();

Callers 1

JobsSelectorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected