Re:Show HN: A password manager using Keybase for encryption ...
by Daviey on Friday June 09, 2017 @12:06AM
(#14519106)
You could use $stdout.isatty as an indicator if it is a shell or interactive and make the default for each?
[ Parent
| on HN ]
Re:Show HN: A password manager using Keybase for encryption ...
by woodruffw on Friday June 09, 2017 @12:18AM
(#14519146)
That 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.