move version subcommand to root

This commit is contained in:
Luke K 2020-04-11 19:43:15 +00:00
parent 38dd3dd6cf
commit 8e0dd47cfa
No known key found for this signature in database
GPG Key ID: 4896F75BAF2E1966
2 changed files with 4 additions and 4 deletions

View File

@ -9,10 +9,6 @@ import (
"github.com/spf13/cobra"
)
// Version
// Printed on subcommand `version` or flag `--version`
const Version = "v0.0.1"
var (
config = "~/.faas/config" // Location of the optional config file.
verbose = false // Enable verbose logging (debug).

View File

@ -6,6 +6,10 @@ import (
"github.com/spf13/cobra"
)
// Version
// Printed on subcommand `version` or flag `--version`
const Version = "v0.0.7"
func init() {
root.AddCommand(versionCmd)
}