Commit 0d17a12
authored
[CLI] Support TERM=dumb (#2929)
## Motivation for the change, related issues
Detects a "dumb terminal" and CI environments in the CLI worker to avoid
using rich output features such as line rewriting.
Why?
Because CI logs for the playground-cli tests are polluted with progress
updates:
```
Downloading WordPress 8%...
Downloading WordPress 9%...
Downloading WordPress 10%...
Downloading WordPress 11%...
Downloading WordPress 12%...
Downloading WordPress 13%...
Downloading WordPress 14%...
Downloading WordPress 15%...
Resolving data reference #5: https://downloads.w.org/release/wordpress-6.3.7.zip – 23.76%
Resolving data reference #5: https://downloads.w.org/release/wordpress-6.3.7.zip – 23.76%
Resolving data reference #5: https://downloads.w.org/release/wordpress-6.3.7.zip – 23.76%
Resolving data reference #5: https://downloads.w.org/release/wordpress-6.3.7.zip – 23.77%
Resolving data reference #5: https://downloads.w.org/release/wordpress-6.3.7.zip – 23.77%
Resolving data reference #5: https://downloads.w.org/release/wordpress-6.3.7.zip – 23.77%
```
## Testing Instructions (or ideally a Blueprint)
Inspect the CLI CI tests output and confirm it's clean.1 parent 8775ba7 commit 0d17a12
File tree
4 files changed
+35
-6
lines changed- packages/playground/cli/src
- blueprints-v1
- blueprints-v2
- utils
4 files changed
+35
-6
lines changedLines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
105 | | - | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
268 | 269 | | |
269 | 270 | | |
270 | 271 | | |
271 | | - | |
| 272 | + | |
272 | 273 | | |
273 | 274 | | |
274 | 275 | | |
| |||
279 | 280 | | |
280 | 281 | | |
281 | 282 | | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
282 | 286 | | |
283 | 287 | | |
284 | 288 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
111 | 115 | | |
112 | 116 | | |
113 | 117 | | |
| |||
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
77 | | - | |
| 78 | + | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
93 | 98 | | |
94 | 99 | | |
95 | 100 | | |
| |||
382 | 387 | | |
383 | 388 | | |
384 | 389 | | |
385 | | - | |
386 | | - | |
387 | | - | |
| 390 | + | |
| 391 | + | |
388 | 392 | | |
389 | 393 | | |
390 | 394 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments