From 7106cd8c0e6d6bdc8e3191a393623cc1ef28f7d5 Mon Sep 17 00:00:00 2001 From: Dipankar Das <65275144+dipankardas011@users.noreply.github.com> Date: Sat, 24 Aug 2024 18:14:28 +0530 Subject: [PATCH] Updated the versioning Signed-off-by: Dipankar Das <65275144+dipankardas011@users.noreply.github.com> --- cli/cmd/version.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cli/cmd/version.go b/cli/cmd/version.go index f0fb28f..25af9d9 100644 --- a/cli/cmd/version.go +++ b/cli/cmd/version.go @@ -2,7 +2,9 @@ package cmd import ( "fmt" + "github.com/ksctl/ksctl/commons" + "github.com/fatih/color" "github.com/spf13/cobra" ) @@ -28,8 +30,8 @@ var versionCmd = &cobra.Command{ Run: func(cmd *cobra.Command, args []string) { fmt.Println(newLogo()) - - fmt.Println("Version:", Version) + fmt.Printf("%s@%s\n", color.HiGreenString("ksctl:cli"), color.HiBlueString(Version)) + fmt.Printf("%s@%s\n", color.HiGreenString("ksctl:core"), color.HiBlueString(commons.GetOCIVersion())) fmt.Println("BuildDate:", BuildDate) }, }