From 6742008fc2874d9ccccfe4a466e9343c660b39a9 Mon Sep 17 00:00:00 2001 From: Mark Sagi-Kazar Date: Thu, 14 Jan 2021 15:55:07 +0100 Subject: [PATCH] refactor: version command Signed-off-by: Mark Sagi-Kazar --- cmd/dex/version.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/cmd/dex/version.go b/cmd/dex/version.go index b74cb016..de206e16 100644 --- a/cmd/dex/version.go +++ b/cmd/dex/version.go @@ -13,11 +13,14 @@ func commandVersion() *cobra.Command { return &cobra.Command{ Use: "version", Short: "Print the version and exit", - Run: func(cmd *cobra.Command, args []string) { - fmt.Printf(`dex Version: %s -Go Version: %s -Go OS/ARCH: %s %s -`, version.Version, runtime.Version(), runtime.GOOS, runtime.GOARCH) + Run: func(_ *cobra.Command, _ []string) { + fmt.Printf( + "Dex Version: %s\nGo Version: %s\nGo OS/ARCH: %s %s\n", + version.Version, + runtime.Version(), + runtime.GOOS, + runtime.GOARCH, + ) }, } }