MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / colorStatus

Function colorStatus

packages/cli/src/cloud/statusColor.ts:10–21  ·  view source on GitHub ↗
(status: HyperframesRenderStatus | string)

Source from the content-addressed store, hash-verified

8import type { HyperframesRenderStatus } from "./_gen/types.js";
9
10export function colorStatus(status: HyperframesRenderStatus | string): string {
11 switch (status) {
12 case "completed":
13 return c.success(status);
14 case "failed":
15 return c.error(status);
16 case "rendering":
17 return c.progress(status);
18 default:
19 return c.dim(status);
20 }
21}

Callers 3

formatTickLineFunction · 0.85
emitFunction · 0.85
printHumanFunction · 0.85

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected