Bump version, display madon version with madonctl version v0.3.1
authorMikael Berthe <mikael@lilotux.net>
Fri, 28 Apr 2017 22:00:07 +0200
changeset 26 530bd59bae97
parent 25 280b34baee60
child 27 f4af03fd34a5
Bump version, display madon version with madonctl version (Updating version to trigger a rebuild with madon 1.1.1...)
cmd/version.go
--- a/cmd/version.go	Fri Apr 28 18:13:01 2017 +0200
+++ b/cmd/version.go	Fri Apr 28 22:00:07 2017 +0200
@@ -9,16 +9,19 @@
 	"fmt"
 
 	"github.com/spf13/cobra"
+
+	"github.com/McKael/madon"
 )
 
 // VERSION of the madonctl application
-var VERSION = "0.3.0"
+var VERSION = "0.3.1"
 
 var versionCmd = &cobra.Command{
 	Use:   "version",
 	Short: "Display " + AppName + " version",
 	Run: func(cmd *cobra.Command, args []string) {
-		fmt.Printf("This is %s version %s\n", AppName, VERSION)
+		fmt.Printf("This is %s version %s (using madon library version %s).\n",
+			AppName, VERSION, madon.MadonVersion)
 	},
 }