cli
cli copied to clipboard
Allow the cli to accpect single lined interactivity
-
This makes the prompts easier to test, e.g., if we ask for both username and password, we can now simply do
printf "myName\nmyPassword\n" | myCli
. -
We don't create a new bufio.Reader each tiem we ask, hopefully it doesn't break someone's program.
-
All the tests pass! :)
@mitchellh hi, any comments on this PR?
@phinze hi, any comments on this?