rickub/clipublic Fork
⑂ 3daaa75
Commits
⬇ Clone ▾
git clone https://git.rickub.com/rickub/cli.git
git clone ssh://git@rickub.com/rickub/cli.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP

version: make --version print the same line as the version commandUnverified

Fixes #6

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FgkcT3UPxwxukBKojB5eg4
Olivier Girardot committed 2026-09-03T07:26:56+02:00 Browse files
3daaa75 parent: f4dae4e
modified cmd/version.go +2 -0
@@ -18,4 +18,6 @@ func init() {
1818 }
1919 rootCmd.AddCommand(versionCmd)
2020 rootCmd.Version = Version
21+ // `rickub --version` prints the same line as `rickub version`.
22+ rootCmd.SetVersionTemplate(fmt.Sprintf("rickub {{.Version}} (%s/%s)\n", runtime.GOOS, runtime.GOARCH))
2123 }
@@ -18,4 +18,6 @@ func init() {
18 }18 }
19 rootCmd.AddCommand(versionCmd)19 rootCmd.AddCommand(versionCmd)
20 rootCmd.Version = Version20 rootCmd.Version = Version
21+ // `rickub --version` prints the same line as `rickub version`.
22+ rootCmd.SetVersionTemplate(fmt.Sprintf("rickub {{.Version}} (%s/%s)\n", runtime.GOOS, runtime.GOARCH))
21 }23 }