diff options
Diffstat (limited to 'commands')
-rw-r--r-- | commands/execenv/env.go | 25 | ||||
-rw-r--r-- | commands/webui.go | 25 |
2 files changed, 24 insertions, 26 deletions
diff --git a/commands/execenv/env.go b/commands/execenv/env.go index 4c6ce204..d30a8db4 100644 --- a/commands/execenv/env.go +++ b/commands/execenv/env.go @@ -134,19 +134,18 @@ func LoadBackend(env *Env) func(*cobra.Command, []string) 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) } } 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) } } |