mirror of
https://github.com/hashicorp/vault.git
synced 2025-12-16 23:11:11 +01:00
Add cgo info to vault version output
This commit is contained in:
parent
c91a7c51a2
commit
c88c8c27a1
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user