loki icon indicating copy to clipboard operation
loki copied to clipboard

DX: normal scrolling doesn't work during command line output

Open JohnAlbin opened this issue 6 years ago • 0 comments

When running a loki command like loki update, my terminal app's screen fills with output that looks like:

$ loki update
loki update v0.18.1
  ❯ Chrome (docker)
    ✔ Prepare environment
    ✔ Start
    ✔ Fetch list of stories
    ❯ Test chrome.laptop
      ❯ Components/AddTask
        ⠙ Default
          No CLI Service
      ❯ Components/Backups
        ⠙ Default

I appreciate the status update. However, I currently have 104 stories so I need to be able to scroll to the top of the list to see what's happening.

Unfortunately, when I try to scroll to the top of the page, I discover that Loki is dumping tons of text updates to the terminal and I can't actually see the top of my stories list update in real time. Worse, I have a gigantic scroll buffer and Loki's output completely fills it up (several times over). I'm pretty sure dumping this much text to the terminal is bad for computer performance (which I need since I'm running tests!)

Can we update the list of stories instead of rewriting it over and over?

If Loki isn't going to have a pretty UI for reviewing test results, I'd recommend making the developer experience as good as possible.

JohnAlbin avatar Dec 11 '19 08:12 JohnAlbin