uzimaru0000/tv

allow - as stdin input

hholst80 opened this issue · 0 comments

By default tv should consume stdin, or at very least allow "-" to be specified to consume stdin on all platforms (/dev/stdin is available on linux but on windows IDK...)

$ tv<enter>
[{ "foo": 1, "bar": 2 }]<enter>
<ctrl-d>
+---+---+
|foo|bar|
+---+---+
|1  |2  |
+---+---+

workaround:

$ cat | tv<enter>
[{ "foo": 1, "bar": 2 }]<enter>
<ctrl-d>
+---+---+
|foo|bar|
+---+---+
|1  |2  |
+---+---+