Add cgo info to vault version output

This commit is contained in:
Jeff Mitchell 2016-11-27 19:32:57 -05:00
parent fef97d9169
commit b87b070987

View file

@ -16,7 +16,11 @@ func (c *VersionCommand) Help() string {
}
func (c *VersionCommand) Run(_ []string) int {
c.Ui.Output(c.VersionInfo.FullVersionNumber(true))
out := c.VersionInfo.FullVersionNumber(true)
if version.CgoEnabled {
out += " (cgo)"
}
c.Ui.Output(out)
return 0
}