You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Regarding feature: "Ask user for a yes/no prompt before installing/removing a package"
#62
The way we currently handle writing to stdout, is not compatible with interactivity in the cli.
We first collect the output from stdout and then print the lines after prefixing it with "MPM", this messes up the stdin in ways, for eg. the stdin will open before printing the Yes/no line or the line will be missing altogether.
Therefore if we want to implement the feature, I propose the following:
We can pass an interactivity flag to the program to turn on this feature.
When the flag is passed, we do not prefix the output of the stdout and print them as it is, instead we can print a banner at the top indicating that mpm is being run.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
The way we currently handle writing to stdout, is not compatible with interactivity in the cli.
We first collect the output from stdout and then print the lines after prefixing it with "MPM", this messes up the stdin in ways, for eg. the stdin will open before printing the Yes/no line or the line will be missing altogether.
Therefore if we want to implement the feature, I propose the following:
We can pass an interactivity flag to the program to turn on this feature.
When the flag is passed, we do not prefix the output of the stdout and print them as it is, instead we can print a banner at the top indicating that
mpmis being run.The output will look something like this:

How does this sound?
All reactions