Add cgo info to vault version output
This commit is contained in:
parent
fef97d9169
commit
b87b070987
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue