UNPKG

alwaysai

Version:

The alwaysAI command-line interface (CLI)

14 lines (11 loc) 266 B
import { spawnSync } from 'child_process'; import { Cmd } from '../types'; export function runForegroundSync(cmd: Cmd) { const out = spawnSync(cmd.exe, cmd.args || [], { cwd: cmd.cwd, stdio: 'inherit', }); if (out.error) { throw out.error; } }