seed-builder
Advanced tools
Comparing version 0.3.7 to 0.3.8
19
cli.js
#! /usr/bin/env node | ||
const exec = require("child_process").execSync; | ||
const exec = require("child_process").exec; | ||
const idx = require("./index.js"); | ||
const [, , ...args] = process.argv | ||
const command = `${idx.getBin()} ${args.join(" ")}` | ||
const child = exec(command) | ||
process.stdin.pipe(child.stdin) | ||
try{ | ||
console.log(exec(command).toString()) | ||
} | ||
catch(error){ | ||
console.log(error.message) | ||
} | ||
child.stdout.on('data', function (data) { | ||
process.stdout.write(data.toString()); | ||
}); | ||
child.stderr.on('data', function (data) { | ||
console.log(data.toString()); | ||
}); | ||
child.on('close', function (code) { | ||
process.exit(); | ||
}); |
{ | ||
"name": "seed-builder", | ||
"version": "0.3.7", | ||
"version": "0.3.8", | ||
"description": "Code generator library", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
20042971
7
47