MCPcopy Create free account
hub / github.com/codename-co/stack / values

Function values

packages/scripts/maintenance/check-versions.ts:36–37  ·  view source on GitHub ↗
(n: string)

Source from the content-addressed store, hash-verified

34const argv = process.argv.slice(2);
35const flag = (n: string) => argv.includes(`--${n}`);
36const values = (n: string) =>
37 argv.flatMap((a, i) => (a === `--${n}` ? [argv[i + 1]] : []));
38
39const ONLY = values("only").filter(Boolean);
40const NO_CACHE = flag("no-cache");

Callers 1

check-versions.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected