Files
kubeshark/cli/cmd/version.go
T

22 lines
347 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("mizu version %s\n", mizu.Version)
return nil
},
}
func init() {
rootCmd.AddCommand(versionCmd)
}