Add cgo info to vault version output

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

View File

@ -16,7 +16,11 @@ func (c *VersionCommand) Help() string {
} }
func (c *VersionCommand) Run(_ []string) int { 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 return 0
} }