From de0bc2e133c198cf1f87b181226ecc38fa577bc0 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Tue, 2 Mar 2021 00:44:38 -0600 Subject: [PATCH] Show rumtime information in version output --- cmd/version.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/version.go b/cmd/version.go index 0dd90d3..b02aa14 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -2,6 +2,7 @@ package lumecmd import ( "fmt" + "runtime" ) func NewCmdVersion() Command { @@ -15,6 +16,8 @@ func NewCmdVersion() Command { } func VersionCmd(args CmdArgs) (int, error) { - fmt.Println(Version) + fmt.Printf("lume %s\n", Version) + fmt.Printf(" os/arch: %s/%s\n", runtime.GOOS, runtime.GOARCH) + fmt.Printf(" go version: %s\n", runtime.Version()) return ExitSuccess, nil }