Skip to content

Commit

Permalink
feat: version
Browse files Browse the repository at this point in the history
  • Loading branch information
CristhianF7 committed Sep 27, 2023
1 parent 1b3efbc commit ff1c150
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ package cmd
import (
"fmt"

"github.com/kubefirst/kubefirst/internal/progress"
"github.com/kubefirst/runtime/configs"
"github.com/spf13/cobra"
)
Expand All @@ -22,6 +23,10 @@ var versionCmd = &cobra.Command{
Short: "print the version number for kubefirst-cli",
Long: `All software has versions. This is kubefirst's`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Printf("\nkubefirst-cli golang utility version: %s\n\n", configs.K1Version)
versionMsg := `
##
### kubefirst-cli golang utility version:` + fmt.Sprintf("`%s`", configs.K1Version)

progress.Success(versionMsg)
},
}

0 comments on commit ff1c150

Please sign in to comment.