There is a package which is a command line utility script. It uses the prompts library to display questions and then performs actions based on the answers.
I want to run this script programmatically. I can see that the prompts library exposes an overrides
method to let answers be set programmatically, but I do not have access to the source of the script to add this functionality in. Also, the script does not export any functions so it cannot be wrapped in another script.
How can run the script in a way that lets me set prompts.override()
?