From 8e0dd47cfaa73cb96f01b6419ea84188a9e51fb4 Mon Sep 17 00:00:00 2001 From: Luke K Date: Sat, 11 Apr 2020 19:43:15 +0000 Subject: [PATCH] move version subcommand to root --- cmd/root.go | 4 ---- cmd/version.go | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 5168fca5..3e1eea32 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -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). diff --git a/cmd/version.go b/cmd/version.go index f195a5a2..f2d38106 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -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) }