Right now the task runner summary takes up too much screen space:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Statistics: 1 tasks • 0 cache hits • 1 cache misses
Performance: 0% cache hit rate
Task Details:
────────────────────────────────────────────────
[1] tsdown-behavior#build: $ vp pack index.ts ✓
→ Cache miss: content of input 'vite.config.ts' changed
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
If the user doesn't have the terminal at full window height (e.g. in an IDE terminal, or when the terminal is only taking up a small height at the bottom of the screen), this can easily fill up the entire vertical space, requiring scrolling up to see the original task output.
What we need to do:
- If a single-task run has a cache miss, no need for summary at all.
- For a single-task run with cache hit:
<original output>
---
[vp run] cache hit, 102.96ms saved.
<original output>
---
[vp run] 2/4 cache hit (50%), 1234ms saved. (Run `vp run --details` for full details)
- Running
vp run task --details displays the full info directly.
- Running
vp run --details displays the full info for the last run.
Right now the task runner summary takes up too much screen space:
If the user doesn't have the terminal at full window height (e.g. in an IDE terminal, or when the terminal is only taking up a small height at the bottom of the screen), this can easily fill up the entire vertical space, requiring scrolling up to see the original task output.
What we need to do:
vp run task --detailsdisplays the full info directly.vp run --detailsdisplays the full info for the last run.