UNPKG

rigjs

Version:

A multi-repos dev tool based on yarn and git.Rigjs is intended to be the simplest way to develop,share and deliver codes between different developers or different projects.

17 lines (14 loc) 532 B
import print from '../print'; import { requireVault } from './config'; import { qmdEmbed } from './qmd'; interface IndexOpts { force?: boolean; } export default async function wikiIndex(opts: IndexOpts): Promise<void> { const t = requireVault(); print.start(`qmd embed: ${t.name}`); const res = await qmdEmbed(t.name, t.path, t.root, { force: !!opts.force }); if (res.ok) print.succeed(`qmd embed: ${t.name} done`); else { print.error(`qmd embed: ${t.name} failed: ${res.stderr.trim()}`); process.exit(1); } }