summaryrefslogtreecommitdiffstats
path: root/client/go
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-09-16 21:45:29 +0200
committerJon Bratseth <bratseth@gmail.com>2022-09-16 21:45:29 +0200
commitf27de7ccbdea1ca6393a789e1aed4e976ce153fb (patch)
treedc9a347fed5a60aea97dcfc99808e0e671d24612 /client/go
parentcdcd2970ad451bbb944a6bc564f6b0e9a88168b8 (diff)
Specify this is the CLI, not Vespa version
Diffstat (limited to 'client/go')
-rw-r--r--client/go/cmd/version.go2
-rw-r--r--client/go/cmd/version_test.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/client/go/cmd/version.go b/client/go/cmd/version.go
index 0a47039a37d..3189b573059 100644
--- a/client/go/cmd/version.go
+++ b/client/go/cmd/version.go
@@ -27,7 +27,7 @@ func newVersionCmd(cli *CLI) *cobra.Command {
SilenceUsage: true,
Args: cobra.ExactArgs(0),
RunE: func(cmd *cobra.Command, args []string) error {
- log.Printf("vespa version %s compiled with %v on %v/%v", build.Version, runtime.Version(), runtime.GOOS, runtime.GOARCH)
+ log.Printf("Vespa CLI version %s compiled with %v on %v/%v", build.Version, runtime.Version(), runtime.GOOS, runtime.GOARCH)
if !skipVersionCheck && cli.isTerminal() {
return checkVersion(cli)
}
diff --git a/client/go/cmd/version_test.go b/client/go/cmd/version_test.go
index 4354a2098c7..404aa9ac1e1 100644
--- a/client/go/cmd/version_test.go
+++ b/client/go/cmd/version_test.go
@@ -21,7 +21,7 @@ func TestVersion(t *testing.T) {
t.Fatal(err)
}
assert.Equal(t, "", stderr.String())
- assert.Contains(t, stdout.String(), "vespa version 0.0.0-devel compiled with")
+ assert.Contains(t, stdout.String(), "Vespa CLI version 0.0.0-devel compiled with")
assert.Contains(t, stdout.String(), "New release available: 1.2.3\nhttps://github.com/vespa-engine/vespa/releases/tag/v1.2.3")
}
@@ -38,7 +38,7 @@ func TestVersionCheckHomebrew(t *testing.T) {
t.Fatal(err)
}
assert.Equal(t, "", stderr.String())
- assert.Contains(t, stdout.String(), "vespa version 0.0.0-devel compiled with")
+ assert.Contains(t, stdout.String(), "Vespa CLI version 0.0.0-devel compiled with")
assert.Contains(t, stdout.String(), "New release available: 1.2.3\n"+
"https://github.com/vespa-engine/vespa/releases/tag/v1.2.3\n"+
"\nUpgrade by running:\nbrew update && brew upgrade vespa-cli\n")