(command, args)
| 64 | } |
| 65 | } |
| 66 | function run(command, args) { |
| 67 | return new Promise((res, rej) => { |
| 68 | const child = spawn(command, args, { cwd: repoRoot, stdio: 'inherit', shell: process.platform === 'win32' }) |
| 69 | child.on('exit', (code) => (code === 0 ? res() : rej(new Error(`${command} ${args.join(' ')} exited ${code}`)))) |
| 70 | child.on('error', rej) |
| 71 | }) |
| 72 | } |
| 73 | |
| 74 | async function seedVault(root) { |
| 75 | const inbox = join(root, 'inbox') |