MCPcopy
hub / github.com/lingodotdev/lingo.dev / parseListInput

Function parseListInput

packages/cli/src/cli/cmd/init.ts:46–50  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

44
45// Parses comma or space separated list of values, removing extra whitespace and quotes
46export const parseListInput = (value: string): string[] =>
47 value
48 .split(/[,\s]+/)
49 .map((v) => v.replace(/^['"]|['"]$/g, ""))
50 .filter(Boolean);
51
52export default new InteractiveCommand()
53 .command("init")

Callers 2

init.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected