Files
kubeshark/cli/cmd/version.go
2021-05-11 10:26:24 +03:00

22 lines
357 B
Go

package cmd
import (
"fmt"
"github.com/up9inc/mizu/cli/mizu"
"github.com/spf13/cobra"
)
var versionCmd = &cobra.Command{
Use: "version",
Short: "Print version info",
RunE: func(cmd *cobra.Command, args []string) error {
fmt.Printf("%s %s\n", mizu.Version, mizu.GitCommitHash)
return nil
},
}
func init() {
rootCmd.AddCommand(versionCmd)
}