1
0
mirror of https://github.com/ko-build/ko.git synced 2024-12-12 08:54:09 +02:00

Print images to stdout as we publish them. (#36)

This commit is contained in:
Naomi Seyfer 2019-05-31 10:20:09 -07:00 committed by jonjohnsonjr
parent 8a084cb5d2
commit 9bae8ab408

View File

@ -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)