pulumi/pkg/util
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
..
buildutil Rework get-version scripts 2018-11-16 20:11:04 -08:00
cancel Add license headers 2018-05-22 15:02:47 -07:00
ciutil Add CircleCI support (#2143) 2018-11-01 11:20:31 -07:00
cmdutil Do not disable echo when stdin is not a terminal 2018-12-03 16:40:51 -08:00
contract Add license headers 2018-05-22 15:02:47 -07:00
fsutil Add license headers 2018-05-22 15:02:47 -07:00
gitutil Add gitlab metadata - Part 1 (#2090) 2018-10-23 14:53:52 -07:00
httputil Fix httputil.DoWithRetry. (#1555) 2018-06-21 11:06:54 -07:00
logging Fix wierd interactions due to Cobra and glog 2018-08-20 14:08:40 -07:00
mapper Add license headers 2018-05-22 15:02:47 -07:00
result Clarify control flow in step generator (#1843) 2018-09-05 15:08:09 -07:00
retry Merge pull request #1358 from pulumi/retry-bugs 2018-06-01 17:11:23 -07:00
rpcutil Spread array argument to variadic function 2018-10-29 18:09:00 -05:00
testutil Add GitLab CI support (#2013) 2018-10-02 16:08:03 -07:00