Skip to content

Commit df72a9a

Browse files
authored
crane push: print pushed ref@digest to stdout (#1663)
1 parent 27a6ad6 commit df72a9a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmd/crane/cmd/push.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ func NewCmdPush(options *[]crane.Option) *cobra.Command {
7373
if imageRefs != "" {
7474
return os.WriteFile(imageRefs, []byte(digest.String()), 0600)
7575
}
76-
// TODO(mattmoor): think about printing the digest to standard out
77-
// to facilitate command composition similar to ko build.
76+
77+
// Print the digest of the pushed image to stdout to facilitate command composition.
78+
fmt.Println(digest)
7879

7980
return nil
8081
},

0 commit comments

Comments
 (0)