MCPcopy Create free account
hub / github.com/bombshell-dev/clack / symbolBar

Function symbolBar

packages/prompts/src/common.ts:56–68  ·  view source on GitHub ↗
(state: State)

Source from the content-addressed store, hash-verified

54};
55
56export const symbolBar = (state: State) => {
57 switch (state) {
58 case 'initial':
59 case 'active':
60 return styleText('cyan', S_BAR);
61 case 'cancel':
62 return styleText('red', S_BAR);
63 case 'error':
64 return styleText('yellow', S_BAR);
65 case 'submit':
66 return styleText('green', S_BAR);
67 }
68};
69
70export interface CommonOptions {
71 input?: Readable;

Callers 2

renderFunction · 0.85
renderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected