Y
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
rixed
45 days ago
Please don't do that, expect has to die.
link
dimes
45 days ago
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.
link