I am trying to run a golang application in interactive mode (so that it will prompt users for information it needs) from nodejs, like so:
childprocess.execFileSync(pulumiExecutable, ["stack", "select"], { encoding: "utf-8", shell: true, stdio: "inherit" });
However it uses this function to automatically disable interactive mode, if it thinks that it is not run from a terminal. Presumably because IsTerminal() is returning false.
Given that I am telling nodejs to inherit IO streams from the parent process, I am wondering what else I can try to do in order to stay in interactive mode when invoking pulumi from within nodejs.