Refactor plugin & version subcommands (#1359)

This commit is contained in:
Ta-Ching Chen
2019-10-22 17:57:56 +08:00
committed by GitHub
parent 22de11190c
commit fed30e1b24
10 changed files with 118 additions and 87 deletions
+6
View File
@@ -43,6 +43,12 @@ type (
Build BuildMeta `json:"Build,omitempty"`
ServerTime Time `json:"ServerTime,omitempty"`
}
// Versions is a container of versions of the client (and its plugins) and server (and its plugins).
Versions struct {
Client map[string]BuildMeta `json:"client"`
Server map[string]BuildMeta `json:"server"`
}
)
func BuildInfo() BuildMeta {