// main.mjs
await $`zx sub.mjs`.pipe(process.stdout)
// sub.mjs
console.log('running sub.mjs');
const answer = await question(chalk.yellow`Your choice (y/n): `);
console.log('answer', answer);
directly run sub.mjs can get answer from user input, but no answer from run main.mjs, any suggestions on this situation?
directly run
sub.mjscan get answer from user input, but no answer from runmain.mjs, any suggestions on this situation?