equal
deleted
inserted
replaced
1 // Copyright © 2017-2018 Mikael Berthe <mikael@lilotux.net> |
1 // Copyright © 2017-2023 Mikael Berthe <mikael@lilotux.net> |
2 // |
2 // |
3 // Licensed under the MIT license. |
3 // Licensed under the MIT license. |
4 // Please see the LICENSE file is this directory. |
4 // Please see the LICENSE file is this directory. |
5 |
5 |
6 package cmd |
6 package cmd |
8 import ( |
8 import ( |
9 "os" |
9 "os" |
10 |
10 |
11 "github.com/spf13/cobra" |
11 "github.com/spf13/cobra" |
12 |
12 |
13 "github.com/McKael/madon/v2" |
13 "github.com/McKael/madon/v3" |
14 "github.com/McKael/madonctl/printer" |
14 "github.com/McKael/madonctl/printer" |
15 ) |
15 ) |
16 |
16 |
17 // madonctlVersion contains the version of the madonctl tool |
17 // madonctlVersion contains the version of the madonctl tool |
18 // and the version of the madon library it is linked with. |
18 // and the version of the madon library it is linked with. |
21 Version string `json:"version"` |
21 Version string `json:"version"` |
22 MadonVersion string `json:"madon_version"` |
22 MadonVersion string `json:"madon_version"` |
23 } |
23 } |
24 |
24 |
25 // VERSION of the madonctl application |
25 // VERSION of the madonctl application |
26 var VERSION = "2.4.0-dev" |
26 var VERSION = "3.0.0-dev" |
27 |
27 |
28 var versionCmd = &cobra.Command{ |
28 var versionCmd = &cobra.Command{ |
29 Use: "version", |
29 Use: "version", |
30 Short: "Display " + AppName + " version", |
30 Short: "Display " + AppName + " version", |
31 RunE: func(cmd *cobra.Command, args []string) error { |
31 RunE: func(cmd *cobra.Command, args []string) error { |