Update go.mod, main.go, and 4 more files...

This commit is contained in:
RamiBerm
2021-05-10 15:44:38 +03:00
parent c4d44ba9d3
commit 4429de93b6
6 changed files with 146 additions and 18 deletions

View File

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