MCPcopy
hub / github.com/QwikDev/qwik / main

Function main

scripts/docs_sync/main.ts:4–11  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

2import { readLines, scanFiles, writeFileLines } from './util.ts';
3
4export function main(dir: string) {
5 console.log('DOC SYNC', dir);
6 scanFiles(dir, async (file) => {
7 if (file.endsWith('.ts')) {
8 await readLines(file).then((lines) => scanForDocDirective(file, lines));
9 }
10 });
11}
12
13async function scanForDocDirective(file: string, lines: string[]) {
14 const output: string[] = [];

Callers 1

index.tsFile · 0.90

Calls 3

scanFilesFunction · 0.90
readLinesFunction · 0.90
scanForDocDirectiveFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…