Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You could use $stdout.isatty as an indicator if it is a shell or interactive and make the default for each?


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: