Skip to content

Commit

Permalink
version: report the cilium images version
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Perrin <[email protected]>
  • Loading branch information
kaworu committed Mar 12, 2021
1 parent 08338b2 commit d9b98fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/cli/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import (
"fmt"
"runtime"

"github.com/cilium/cilium-cli/defaults"

"github.com/spf13/cobra"
)

Expand All @@ -44,8 +46,7 @@ func newCmdVersion() *cobra.Command {
case GitHash != "":
gitInfo = fmt.Sprintf("@%s", GitHash)
}
// TODO: add support for reporting the Cilium version
fmt.Printf("cilium-cli: v%s%s compiled with %v on %v/%v\n", Version, gitInfo, runtime.Version(), runtime.GOOS, runtime.GOARCH)
fmt.Printf("cilium-cli: v%s%s (%s images) compiled with %v on %v/%v\n", Version, gitInfo, defaults.Version, runtime.Version(), runtime.GOOS, runtime.GOARCH)
},
}
}

0 comments on commit d9b98fd

Please sign in to comment.