From 9bae8ab4082d1bb26639e7e5a95ae62deb1bec10 Mon Sep 17 00:00:00 2001 From: Naomi Seyfer Date: Fri, 31 May 2019 10:20:09 -0700 Subject: [PATCH] Print images to stdout as we publish them. (#36) --- pkg/commands/publish.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/commands/publish.go b/pkg/commands/publish.go index 197d9aa1..5e32a23d 100644 --- a/pkg/commands/publish.go +++ b/pkg/commands/publish.go @@ -15,6 +15,7 @@ package commands import ( + "fmt" "log" "github.com/google/ko/pkg/commands/options" @@ -67,9 +68,13 @@ func addPublish(topLevel *cobra.Command) { if err != nil { log.Fatalf("error creating publisher: %v", err) } - if _, err := publishImages(args, publisher, builder); err != nil { + images, err := publishImages(args, publisher, builder) + if err != nil { log.Fatalf("failed to publish images: %v", err) } + for _, img := range images { + fmt.Println(img) + } }, } options.AddLocalArg(publish, lo)