restate icon indicating copy to clipboard operation
restate copied to clipboard

NO_INTERACTIVE env variable to fail fast interactive commands on CI

Open slinkydeveloper opened this issue 2 years ago • 2 comments

Something like DEBIAN_FRONTEND=noninteractive, that disables all interactiveness in case the env variable is set.

slinkydeveloper avatar Dec 05 '23 16:12 slinkydeveloper

What would you like the behaviour to be in the case that it's non interactive? for example here I see there is a prompt with a default value, should the input function return a Result::Error or should it return the default to the calling function? Or should each function that uses input check if input is enabled? (I definitely don't like this option)

edude03 avatar Jul 04 '24 16:07 edude03

According to https://askubuntu.com/a/972528, DEBIAN_FRONTEND=noninteractive will answer all questions with the default response. To not cause surprises, I would stick with this behavior.

tillrohrmann avatar Jul 04 '24 17:07 tillrohrmann