Hacker News new | ask | show | jobs
by dimes 45 days ago
CLIs should check isatty and, if it returns false, disable any interactive functionality because it won’t work.
1 comments

Please don't do that, expect has to die.
I don’t mean that expect should be used. But flags like —no-interactive are unnecessary. CLIs can just check `isatty == false` instead of requiring an explicit flag.