mirror of https://github.com/knative/func.git
move version subcommand to root
This commit is contained in:
parent
38dd3dd6cf
commit
8e0dd47cfa
|
@ -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).
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue