github.com/lyft/flytestdlib@v0.3.12-0.20210213045714-8cdd111ecda1/cli/pflags/cmd/version.go (about) 1 package cmd 2 3 import ( 4 "github.com/lyft/flytestdlib/version" 5 "github.com/spf13/cobra" 6 ) 7 8 var versionCmd = &cobra.Command{ 9 Aliases: []string{"version", "ver"}, 10 Run: func(cmd *cobra.Command, args []string) { 11 version.LogBuildInformation("pflags") 12 }, 13 } 14 15 func init() { 16 root.AddCommand(versionCmd) 17 }