commit | 8d409c16f66dfd909faec730de9f4885786973ac | [log] [tgz] |
---|---|---|
author | Ken Ashcraft <kash@google.com> | Tue May 19 17:21:58 2015 -0700 |
committer | Ken Ashcraft <kash@google.com> | Tue May 19 17:22:00 2015 -0700 |
tree | 99a0b3b8eb0c3d6b7950e8b91c9334a2c31d53cc | |
parent | f01b7ccb584566d25df0b5a17b6f4cc41dffbcbc [diff] |
query/demo: Detect if os.Stdin is a terminal. If os.Stdin is not a terminal, we want to read blindly from it rather than trying to prompt for a query. Change-Id: I4c6c5409217568f239b4b064fedfdb08cbd92c10