cloudflare / gokey

A simple vaultless password manager in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Password prompt should be printed to stderr

ntuckerxx opened this issue · comments

Would be nice if the master password prompt went to stderr so the output can be piped to a clipboard-grabber, e.g. on a Mac:

gokey -s myseed -r some/password | pbcopy

... resulting in the password being placed in the clipboard, rather than making the user select and copy it manually. In addition to being less manual, it also means the password doesn't actually ever need to be seen.

Note that this requires the newline after the password to not go to stdout either.

Note that I've made such a change in my fork: https://github.com/ntuckerxx/gokey

Great idea. Can you send a PR?

Note: I don't have permissions to manually link the PR to the issue, and editing the PR title didn't do it.

To link the issues you may just mention the issue # in the comment. Thanks for the contribution. Resolved by #32