Skip to content

Commit

Permalink
Updated the versioning
Browse files Browse the repository at this point in the history
Signed-off-by: Dipankar Das <[email protected]>
  • Loading branch information
dipankardas011 committed Aug 24, 2024
1 parent 009ab4b commit 7106cd8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cli/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ package cmd

import (
"fmt"
"github.com/ksctl/ksctl/commons"

"github.com/fatih/color"
"github.com/spf13/cobra"
)

Expand All @@ -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)
},
}
Expand Down

0 comments on commit 7106cd8

Please sign in to comment.