Files
podinfo/cmd/podcli/version.go
stefanprodan ba12154f68 Format imports
2020-03-24 13:03:51 +02:00

22 lines
346 B
Go

package main
import (
"fmt"
"github.com/spf13/cobra"
"github.com/stefanprodan/podinfo/pkg/version"
)
func init() {
rootCmd.AddCommand(versionCmd)
}
var versionCmd = &cobra.Command{
Use: `version`,
Short: "Prints podcli version",
RunE: func(cmd *cobra.Command, args []string) error {
fmt.Println(version.VERSION)
return nil
},
}