pulumi/pkg/util/cmdutil
Matt Ellis f3fbc1d9ee Do not disable echo when stdin is not a terminal
When reading values like access keys or secrets from the terminal, we
would use the `terminal.ReadPassword` function to ensure characters
the user typed were not echo'd back to the console, as a convience.

When standard input was not connected to a tty (which would happen in
some cases like in docker when -t was not passed or in CI), this would
fail with an error about an bad ioctl. Update our logic such that
when standard in is not connected to a terminal, we just read input
normally.

While I was in the area, I unified the code for Windows and *NIX for
these functions.

Fixes #2017
2018-12-03 16:40:51 -08:00
..
args.go Add license headers 2018-05-22 15:02:47 -07:00
child.go Add license headers 2018-05-22 15:02:47 -07:00
child_windows.go Add license headers 2018-05-22 15:02:47 -07:00
console.go Provide an actual 'table' printing routine so that we can appropriate choose columns widths dynamically. (#2266) 2018-12-02 00:22:07 -08:00
console_password.go Do not disable echo when stdin is not a terminal 2018-12-03 16:40:51 -08:00
diag.go Bring back support for the 'auto' value for colorization. (#2023) 2018-10-04 16:20:01 -07:00
exit.go Revert "Plumb LogRequest.IsStatus through the logging subsystem" 2018-08-31 15:56:53 -07:00
profile.go Add license headers 2018-05-22 15:02:47 -07:00
spinner.go Bring back support for the 'auto' value for colorization. (#2023) 2018-10-04 16:20:01 -07:00
trace.go Add license headers 2018-05-22 15:02:47 -07:00