github.com/docker/cnab-to-oci@v0.3.0-beta4/cmd/cnab-to-oci/version.go (about) 1 package main 2 3 import ( 4 "fmt" 5 6 "github.com/docker/cnab-to-oci/internal" 7 "github.com/spf13/cobra" 8 ) 9 10 func versionCmd() *cobra.Command { 11 cmd := &cobra.Command{ 12 Use: "version", 13 Short: "Shows the version of cnab-to-oci", 14 RunE: func(cmd *cobra.Command, args []string) error { 15 fmt.Println(internal.FullVersion()) 16 return nil 17 }, 18 } 19 return cmd 20 }