command/version: Print the version ranges
This commit is contained in:
parent
752b4ac43f
commit
dddc1f65b2
|
@ -3,6 +3,7 @@ package command
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/hashicorp/consul/consul"
|
||||||
"github.com/mitchellh/cli"
|
"github.com/mitchellh/cli"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -30,6 +31,8 @@ func (c *VersionCommand) Run(_ []string) int {
|
||||||
}
|
}
|
||||||
|
|
||||||
c.Ui.Output(versionString.String())
|
c.Ui.Output(versionString.String())
|
||||||
|
c.Ui.Output(fmt.Sprintf("Consul Protocol: %d (Understands back to: %d)",
|
||||||
|
consul.ProtocolVersionMax, consul.ProtocolVersionMin))
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue