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

Function computeLabel

packages/prompts/src/multi-select.ts:36–41  ·  view source on GitHub ↗
(label: string, format: (text: string) => string)

Source from the content-addressed store, hash-verified

34 showInstructions?: boolean;
35}
36const computeLabel = (label: string, format: (text: string) => string) => {
37 return label
38 .split('\n')
39 .map((line) => format(line))
40 .join('\n');
41};
42
43export const multiselect = <Value>(opts: MultiSelectOptions<Value>) => {
44 const opt = (

Callers 1

optFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected