nork/artisan.js

26 lines
484 B
JavaScript
Raw Normal View History

2021-08-15 00:33:57 +02:00
const { exec } = require('child_process')
let args = []
for (let i = 0; i < process.argv; i++) {
if (i > 1) {
console.log('i', i)
console.log(process.args[i])
args.push(process.args[i])
}
}
console.log(args)
// exec('node ./framework/src/app.js', (error, stdout, stderr) => {
// if (error) {
// console.log(`error: ${error.message}`)
// return
// }
// if (stderr) {
// console.log(`stderr: ${stderr}`)
// return
// }
// console.log(`stdout: ${stdout}`)
// })