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
I noticed that when running drive non-interactive or when using -no-prompt,
the preview of changes is not sent to stdout.
Not sure if this was intended or not, but I would expect that no-prompt to only have impact on the reading of stdin for continuing or not, and not have impact on what is printed to stdout.
I changed this behavior in my fork (branch always_previewing). Not sure if you're interested and/or if I'm not breaking anything.
best regards,
Raf
The text was updated successfully, but these errors were encountered:
Hello @rafmeeusen, welcome to drive and thank you for reporting this issue as well as working on it!
Yes in deed, this sounds like reasonable behaviour to have and you are onto something. The only twist is that if say you are piping output to a non-tty or so, you don't need to provide a preview. Also currently --no-prompt couples with method
So a possible way to get this behaviour in correctly would be to add a similar method say canPreview() and then couple that in the way that canPrompt is used.
Hi @odeke-em, sorry had no time yet to look at your proposal, but I already can point out that I have the same use case as pefoley2 : auto-running drive / would like to have a log (i.e. stdout/stderr) saved to file.
Hi,
I noticed that when running drive non-interactive or when using -no-prompt,
the preview of changes is not sent to stdout.
Not sure if this was intended or not, but I would expect that no-prompt to only have impact on the reading of stdin for continuing or not, and not have impact on what is printed to stdout.
I changed this behavior in my fork (branch always_previewing). Not sure if you're interested and/or if I'm not breaking anything.
best regards,
Raf
The text was updated successfully, but these errors were encountered: