Replaced --version with version subcommand
This commit is contained in:
parent
26981c9669
commit
4395818492
|
@ -21,7 +21,6 @@ var rootCmd = &cobra.Command{
|
|||
Run: func(cmd *cobra.Command, args []string) {
|
||||
ServePage(args)
|
||||
},
|
||||
Version: Version,
|
||||
}
|
||||
|
||||
func Execute() {
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var Version = "0.6.1"
|
||||
var Version = "0.6.2"
|
||||
|
||||
func init() {
|
||||
rootCmd.AddCommand(versionCmd)
|
||||
|
|
Loading…
Reference in New Issue