MCPcopy
hub / github.com/smapiot/piral / generateCommandDocs

Function generateCommandDocs

tools/generate-command-docs.js:316–325  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

314}
315
316function generateCommandDocs() {
317 const validators = readValidators();
318
319 for (const command of commands.all) {
320 const head = generateHead(command.name);
321 const body = generateBody(command, validators);
322 const content = generateContent(head, body);
323 writeCommandContent(command.name, content);
324 }
325}
326
327if (require.main === module) {
328 generateCommandDocs();

Callers 1

Calls 5

readValidatorsFunction · 0.85
generateHeadFunction · 0.85
generateBodyFunction · 0.85
generateContentFunction · 0.85
writeCommandContentFunction · 0.85

Tested by

no test coverage detected