git-bug/entity/streamed.go
Michael Muré 7df34aa7a4
commands: add a nice terminal progress bar when building the cache
One issue remaining is that writing the cache takes significant time, but I don't know how to reflect that nicely to the user.
2023-01-11 14:31:22 +01:00

12 lines
298 B
Go

package entity
type StreamedEntity[EntityT Interface] struct {
Err error
Entity EntityT
// CurrentEntity is the index of the current entity being streamed, to express progress.
CurrentEntity int64
// TotalEntities is the total count of expected entities, if known.
TotalEntities int64
}