Fix version in CLI
@@ -4,6 +4,7 @@ import (
"fmt"
"os"
+ "github.com/gramLabs/cordelia/pkg/version"
"github.com/spf13/cobra"
)
@@ -13,18 +14,14 @@ var rootCmd = &cobra.Command{
func init() {
rootCmd.Run = rootCmd.HelpFunc()
- rootCmd.Version = Version()
+ rootCmd.Version = version.GetVersion()
rootCmd.AddCommand(newInitCommand())
rootCmd.AddCommand(newResetCommand())
// TODO Add additional commands to the client
// create experiment [--remote-only]
-}
-// Version returns the current version of the application
-func Version() string {
- return "v1.0.0-alpha.1"
}
// Execute runs the application
