A basic cli tool that uses
terminal.ReadPassword to get a password.
This was to help me understand stubbing the interface for stdin capture, as I've been writing tests for a lot of CLI apps recently.
The idea was from this StackOverflow question: https://stackoverflow.com/questions/38573176/mocking-crypto-ssh-terminal
And the code was based on https://github.com/isaacasensio/memo - which already had some stubbing in it!
$ go get github.com/petems/passwordgetter
$ passwordgetter Enter password: Your password was: hunter2