Help, calling command in another command #2073
magic-thomas
started this conversation in
General
Replies: 1 comment 1 reply
-
Hey @magic-thomas! 👋 You can require const ace = require('@adonisjs/ace')
await ace.call('migration:run', {}, { silent: true }) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Yes, I have to call child process command in command.
I have two command
call:invest -> child process
main:call -> main process.
in shell.
it works fine and produce infinite output .
but for getting output from child process.
-> it goest error.
my main:call coes are below
How can I run command in another command ?
p.s.
I even tried with this codes
Package version
adonis 4.1 / puppeteer
Node.js and npm version
node : 15.4
npm 6.14.10
Beta Was this translation helpful? Give feedback.
All reactions