MCPcopy
hub / github.com/breferrari/obsidian-mind / ensureQmd

Function ensureQmd

scripts/qmd-bootstrap.ts:100–108  ·  view source on GitHub ↗
(entry: string | null)

Source from the content-addressed store, hash-verified

98}
99
100function ensureQmd(entry: string | null): void {
101 const probe = spawnQmd(entry, ["--version"]);
102 if (probe.status !== 0) {
103 process.stderr.write(
104 "qmd not found. Install it first: npm i -g @tobilu/qmd\n",
105 );
106 process.exit(1);
107 }
108}
109
110/**
111 * Run a qmd subcommand and treat any non-zero exit as fatal. Echoes captured

Callers 1

mainFunction · 0.85

Calls 1

spawnQmdFunction · 0.85

Tested by

no test coverage detected