move version info to separate package

This commit is contained in:
Christian Schwarz
2018-08-26 21:57:19 +02:00
parent ee5445777d
commit 428339e1ad
5 changed files with 35 additions and 28 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ func doControLVersionCmd(cmd *cobra.Command, args []string) {
die()
}
var info ZreplVersionInformation
var info version.ZreplVersionInformation
err = json.NewDecoder(resp.Body).Decode(&info)
if err != nil {
log.Printf("error unmarshaling response: %s", err)