Bump version, display madon version with madonctl version
(Updating version to trigger a rebuild with madon 1.1.1...)
// Copyright © 2017 Mikael Berthe <mikael@lilotux.net>
//
// Licensed under the MIT license.
// Please see the LICENSE file is this directory.
package cmd
import (
"fmt"
"github.com/spf13/cobra"
"github.com/McKael/madon"
)
// VERSION of the madonctl application
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 (using madon library version %s).\n",
AppName, VERSION, madon.MadonVersion)
},
}
func init() {
RootCmd.AddCommand(versionCmd)
}