equal
deleted
inserted
replaced
7 |
7 |
8 import ( |
8 import ( |
9 "fmt" |
9 "fmt" |
10 |
10 |
11 "github.com/spf13/cobra" |
11 "github.com/spf13/cobra" |
|
12 |
|
13 "github.com/McKael/madon" |
12 ) |
14 ) |
13 |
15 |
14 // VERSION of the madonctl application |
16 // VERSION of the madonctl application |
15 var VERSION = "0.3.0" |
17 var VERSION = "0.3.1" |
16 |
18 |
17 var versionCmd = &cobra.Command{ |
19 var versionCmd = &cobra.Command{ |
18 Use: "version", |
20 Use: "version", |
19 Short: "Display " + AppName + " version", |
21 Short: "Display " + AppName + " version", |
20 Run: func(cmd *cobra.Command, args []string) { |
22 Run: func(cmd *cobra.Command, args []string) { |
21 fmt.Printf("This is %s version %s\n", AppName, VERSION) |
23 fmt.Printf("This is %s version %s (using madon library version %s).\n", |
|
24 AppName, VERSION, madon.MadonVersion) |
22 }, |
25 }, |
23 } |
26 } |
24 |
27 |
25 func init() { |
28 func init() { |
26 RootCmd.AddCommand(versionCmd) |
29 RootCmd.AddCommand(versionCmd) |