MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / readReadmeCommandKeys

Function readReadmeCommandKeys

apps/api/scripts/check-scripts-docs.ts:43–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 const keys = new Set<string>();
42
43 for (const match of text.matchAll(/\|\s*`bun run\s+([^`]+)`\s*\|/gu)) {
44 const key = match[1]?.trim();
45
46 if (key !== undefined && key.length > 0) {
47 keys.add(key);
48 }
49 }
50
51 return keys;
52}
53
54function main(): void {
55 const wired = readPackageScriptKeys();
56 const documented = readReadmeCommandKeys();
57 const missing = wired.filter((key) => !documented.has(key));
58
59 if (missing.length > 0) {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected