Merge pull request #3474 from crosbymichael/uuid

Add UUID and server info to introspection
This commit is contained in:
Phil Estes
2019-08-06 15:58:05 -04:00
committed by GitHub
6 changed files with 364 additions and 35 deletions

View File

@@ -46,6 +46,11 @@ var Command = cli.Command{
fmt.Println("Server:")
fmt.Println(" Version: ", v.Version)
fmt.Println(" Revision:", v.Revision)
di, err := client.Server(ctx)
if err != nil {
return err
}
fmt.Println(" UUID:", di.UUID)
if v.Version != version.Version {
fmt.Fprintln(os.Stderr, "WARNING: version mismatch")
}