3 ms·
You could use $stdout.isatty as an indicator if it is a shell or interactive and make the default for each?
by Daviey 9y ago
You could use $stdout.isatty as an indicator if it is a shell or interactive and make the default for each?
- woodruffw 9y agoThat sounds like a good solution, thanks! Edit: I've created 0.4.1 for this change: `kbsecret login` now performs interactive input by default, provided that `$stdin.tty?` is true and the -a/--args flag is not passed. That provides both a more reasonable default and a way to override the safer behavior when testing for a TTY isn't a good enough indicator of noninteractivity.