Skip to content

Commit

Permalink
Merge pull request stefanprodan#116 from stefanprodan/cue-version
Browse files Browse the repository at this point in the history
Add the CUE version to `timoni version` output
  • Loading branch information
stefanprodan authored May 29, 2023
2 parents 916c839 + 4d5a5e5 commit 025d044
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/timoni/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ import (
apiv1 "github.com/stefanprodan/timoni/api/v1alpha1"
)

var VERSION = "0.0.0-dev.0"
var (
VERSION = "0.0.0-dev.0"
CUE_VERSION = "0.5.0"
)

var rootCmd = &cobra.Command{
Use: "timoni",
Expand Down
1 change: 1 addition & 0 deletions cmd/timoni/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func runVersionCmd(cmd *cobra.Command, args []string) error {
info := map[string]string{}
info["client"] = VERSION
info["api"] = apiv1.GroupVersion.String()
info["cue"] = CUE_VERSION

var marshalled []byte
var err error
Expand Down

0 comments on commit 025d044

Please sign in to comment.