Commit 1ea066b
committed
Fix CLI checking for content
Previously, we were checking if $stdin was a TTY to determine if
there was content to be read. As it turns out, this isn't really a
good indicator, as content could always come later, and some folks
run stree in CI when $stdin is not a TTY and still pass filenames.
Instead, we now check if no filenames were passed, and in that case
we attempt to read from $stdin.1 parent 695918e commit 1ea066b
2 files changed
+9
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | 426 | | |
434 | 427 | | |
435 | 428 | | |
436 | | - | |
437 | | - | |
438 | | - | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
439 | 432 | | |
440 | 433 | | |
441 | 434 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | 126 | | |
134 | 127 | | |
135 | 128 | | |
| |||
140 | 133 | | |
141 | 134 | | |
142 | 135 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
| 136 | + | |
| 137 | + | |
147 | 138 | | |
148 | 139 | | |
149 | 140 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
| 141 | + | |
| 142 | + | |
154 | 143 | | |
155 | 144 | | |
156 | 145 | | |
| |||
251 | 240 | | |
252 | 241 | | |
253 | 242 | | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
| 243 | + | |
| 244 | + | |
258 | 245 | | |
259 | 246 | | |
260 | 247 | | |
| |||
263 | 250 | | |
264 | 251 | | |
265 | 252 | | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | 253 | | |
271 | 254 | | |
272 | 255 | | |
| |||
0 commit comments