2 Commits
Author SHA1 Message Date
sugoidogo e3893f594e fix subcommand output
Main / release (push) Successful in 42s
2026-01-14 00:21:48 -08:00
sugoidogo 2457617bdc redirect subcommand output to file
Main / release (push) Successful in 41s
2026-01-14 00:17:04 -08:00
+2 -1
View File
@@ -24,7 +24,8 @@ let config: { [key: string]: string } = {}
let index: { [key: string]: { [key: string]: string } } = {}
function sugoiSpawn(...command: string[]) {
const result = spawnSync(command.shift()!, command, { stdio: 'inherit' })
const result = spawnSync(command.shift()!, command, { stdio: 'pipe' })
console.log(result.stdout,result.stderr)
if (result.error) throw result.error
if (result.status !== 0) process.exit(result.status)
return result