isTTYErr returns whether the passed invocation is having stderr written to a TTY
(inv *serpent.Invocation)
| 1121 | |
| 1122 | // isTTYErr returns whether the passed invocation is having stderr written to a TTY |
| 1123 | func isTTYErr(inv *serpent.Invocation) bool { |
| 1124 | return isTTYWriter(inv, inv.Stderr) |
| 1125 | } |
| 1126 | |
| 1127 | func isTTYWriter(inv *serpent.Invocation, writer io.Writer) bool { |
| 1128 | // If the `--force-tty` command is available, and set, |