Replaced --version with version subcommand

This commit is contained in:
Seednode 2022-09-16 14:48:30 -05:00
parent 26981c9669
commit 4395818492
2 changed files with 1 additions and 2 deletions

View File

@ -21,7 +21,6 @@ var rootCmd = &cobra.Command{
Run: func(cmd *cobra.Command, args []string) { Run: func(cmd *cobra.Command, args []string) {
ServePage(args) ServePage(args)
}, },
Version: Version,
} }
func Execute() { func Execute() {

View File

@ -10,7 +10,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )
var Version = "0.6.1" var Version = "0.6.2"
func init() { func init() {
rootCmd.AddCommand(versionCmd) rootCmd.AddCommand(versionCmd)