diff options
author | Michael Muré <batolettre@gmail.com> | 2023-01-14 14:49:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-14 14:49:25 +0100 |
commit | 6e5ea512ac82972c6e0da78976f967006e5fe5c4 (patch) | |
tree | 7727fc721b4bd82fcf7869fb48f9656504cbb3af /entity/streamed.go | |
parent | a1eec9aadfa24bad4804edc5fbb1c0753f4690cb (diff) | |
parent | 7df34aa7a40be0d7b759ea3ef42cedf9f25f32b2 (diff) | |
download | git-bug-6e5ea512ac82972c6e0da78976f967006e5fe5c4.tar.gz |
Merge pull request #987 from MichaelMure/cache-progress-bar
commands: add a nice terminal progress bar when building the cache
Diffstat (limited to 'entity/streamed.go')
-rw-r--r-- | entity/streamed.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/entity/streamed.go b/entity/streamed.go index 789224a3..33124ef0 100644 --- a/entity/streamed.go +++ b/entity/streamed.go @@ -1,6 +1,11 @@ package entity type StreamedEntity[EntityT Interface] struct { - Entity EntityT 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 } |