From 88b3c8358c0bdc344bc8094ac732f2b1c40f2603 Mon Sep 17 00:00:00 2001 From: Timothy Messier Date: Thu, 23 Sep 2021 12:22:20 -0400 Subject: [PATCH] feat(cmd): Include version metadata in output (#1560) If the VersionMetadata is set, include it in the output of the `boundary version` subcommand. --- internal/cmd/commands/version/version.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/cmd/commands/version/version.go b/internal/cmd/commands/version/version.go index cba5b4733..a615e9768 100644 --- a/internal/cmd/commands/version/version.go +++ b/internal/cmd/commands/version/version.go @@ -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)