I was making a tweak to
Mix.Shell.IO.yes?/1 a while back and it occurred to me that it would also nice to have a password function, much the same as
Mix.Shell.IO.prompt/1 except it would hide input from the user, which I am sure is familiar functionality to almost every developer.
I just had some time to look into how to implement this and it seems this would be easy to implement by wrapping
:io.get_password/1 — for example:
def password(message) do
print_app()
:io.get_password(message <> " ")
end
Of course, in saying that, would that be a counterargument for precluding creating this functionality at all? :D
Thanks!
Darragh