go-pretty icon indicating copy to clipboard operation
go-pretty copied to clipboard

[FR] progress: allow explicit ordering, including completed and running

Open malt3 opened this issue 2 months ago • 0 comments

Is your feature request related to a problem? Please describe.

All of the progress bars that are "done" are rendered before any of those that are running. I want an option that

  • Allows me to specify a fixed order with an index
  • Bars should be sorted by that index, regardless of their status (running or done)

Describe the solution you'd like

Support some way to express the order with an integer on the tracker or a custom sorting function. Ensure that this is applied over the whole list of progress bars (running and completed).

In my example use case, I'd like to render something similar to "docker pull" or "docker push", where I know the correct order of layers in advance. I do not control the order in which the progress trackers are appended, so I'd like to express the order using the layer order (which is known to me when creating a tracker).

Describe alternatives you've considered

N/A

Additional context

N/A

malt3 avatar Dec 09 '25 15:12 malt3