command/version: Print the version ranges

This commit is contained in:
Armon Dadgar 2014-03-09 15:54:21 -07:00
parent 752b4ac43f
commit dddc1f65b2
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,7 @@ package command
import (
"bytes"
"fmt"
"github.com/hashicorp/consul/consul"
"github.com/mitchellh/cli"
)
@ -30,6 +31,8 @@ func (c *VersionCommand) Run(_ []string) int {
}
c.Ui.Output(versionString.String())
c.Ui.Output(fmt.Sprintf("Consul Protocol: %d (Understands back to: %d)",
consul.ProtocolVersionMax, consul.ProtocolVersionMin))
return 0
}