Commit Graph

8 Commits

Author SHA1 Message Date
Buck Doyle
635f67b507 CLI: Remove duplicated error output (#6738) 2019-11-19 16:05:53 -06:00
Mahmood Ali
638434ae53 nomad exec: check stdout for tty as well
When inferring whether to use TTY, check both stdin and stdout are
terminals.

Otherwise, we get failures like the following:

```
$ nomad alloc exec --job example echo hi
hi
$ echo | nomad alloc exec --job example echo hi
hi
$ nomad alloc exec --job example echo hi | head -n1
failed to exec into task: not a terminal
```
2019-11-12 11:39:06 -05:00
Mahmood Ali
30b148c8d4 Restore tty start before emitting errors
Otherwise, the error message appears indented unexpectedly.
2019-05-17 11:58:31 -04:00
Mahmood Ali
eedd8e9e66 Implement escaping chrarcter for alloc exec 2019-05-16 16:22:52 -04:00
Mahmood Ali
c1c9d9b07d fix typo 2019-05-15 13:01:05 -04:00
Mahmood Ali
d675d28ff3 Handle Terminal Output state in Windows 2019-05-15 10:37:37 -04:00
Mahmood Ali
8bbc78a48a Add clarifying comments for negating -i or -t 2019-05-15 10:35:12 -04:00
Mahmood Ali
bad77f1ece add CLI commands for nomad exec 2019-05-12 22:04:50 -04:00