search_awesome/cli.ts
2022-11-29 17:55:06 +09:00

8 lines
303 B
TypeScript

import {join} from 'https://deno.land/std@0.166.0/path/mod.ts';
import { expandGlob } from 'https://deno.land/std@0.166.0/fs/mod.ts';
import { DocParser, readDoc } from './doc_load/load.ts';
for await(const dir of expandGlob('sample/*.md')) {
console.log(dir.path);
await readDoc(dir.path, true);
}