aboutsummaryrefslogtreecommitdiffstats
path: root/commands/webui.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2022-12-27 11:19:45 +0100
committerMichael Muré <batolettre@gmail.com>2022-12-27 11:19:45 +0100
commit13a7a5991761eefc00facdc0c7dbc3eb150d6959 (patch)
treeb96a90acf330f4172e6c0ba935b6599f2a1aa9f8 /commands/webui.go
parentf94616ec76e01145a7b2b90c11b27a25d4a4be96 (diff)
downloadgit-bug-13a7a5991761eefc00facdc0c7dbc3eb150d6959.tar.gz
cache: tie the last printf in an event to make the core print free
Diffstat (limited to 'commands/webui.go')
-rw-r--r--commands/webui.go25
1 files changed, 12 insertions, 13 deletions
diff --git a/commands/webui.go b/commands/webui.go
index ea9fde0c..eca40b91 100644
--- a/commands/webui.go
+++ b/commands/webui.go
@@ -111,19 +111,18 @@ func runWebUI(env *execenv.Env, opts webUIOptions) error {
return err
}
- if events != nil {
- env.Err.Println("Building cache... ")
- for event := range events {
- if event.Err != nil {
- env.Err.Printf("Cache building error [%s]: %v\n", event.Typename, event.Err)
- continue
- }
- switch event.Event {
- case cache.BuildEventStarted:
- env.Err.Printf("[%s] started\n", event.Typename)
- case cache.BuildEventFinished:
- env.Err.Printf("[%s] done\n", event.Typename)
- }
+ for event := range events {
+ if event.Err != nil {
+ env.Err.Printf("Cache building error [%s]: %v\n", event.Typename, event.Err)
+ continue
+ }
+ switch event.Event {
+ case cache.BuildEventCacheIsBuilt:
+ env.Err.Println("Building cache... ")
+ case cache.BuildEventStarted:
+ env.Err.Printf("[%s] started\n", event.Typename)
+ case cache.BuildEventFinished:
+ env.Err.Printf("[%s] done\n", event.Typename)
}
}