feat(cmd): Include version metadata in output (#1560)

If the VersionMetadata is set, include it in the output of the `boundary
version` subcommand.
This commit is contained in:
Timothy Messier authored and GitHub committed 2021-09-23 12:22:20 -04:00
1 parent 49d5711a49
commit 88b3c8358c
1 file changed
+3
+3
View File
@@ -67,6 +67,9 @@ func (c *Command) Run(args []string) int {
if verInfo.Version != "" {
nonAttributeMap["Version Number"] = verInfo.VersionNumber()
}
if verInfo.VersionMetadata != "" {
nonAttributeMap["Metadata"] = verInfo.VersionMetadata
}
maxLength := base.MaxAttributesLength(nonAttributeMap, nil, nil)