From f0edfd30d25d8704ace4287e9b9cbf24107994e2 Mon Sep 17 00:00:00 2001 From: Andrea Angiolillo Date: Thu, 7 Mar 2024 16:01:37 +0000 Subject: [PATCH] CLOUDP-236398: update new version message to remove full stop (#2729) --- internal/cli/root/atlas/builder.go | 6 +++--- internal/cli/root/atlas/builder_test.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/cli/root/atlas/builder.go b/internal/cli/root/atlas/builder.go index aad5b07a91..7cd362337b 100644 --- a/internal/cli/root/atlas/builder.go +++ b/internal/cli/root/atlas/builder.go @@ -344,16 +344,16 @@ func (n *Notifier) notifyIfApplicable(isHb bool) error { var upgradeInstructions string if isHb { - upgradeInstructions = `To upgrade, run "brew update && brew upgrade mongodb-atlas-cli".` + upgradeInstructions = `To upgrade, run "brew update && brew upgrade mongodb-atlas-cli"` } else { - upgradeInstructions = "To upgrade, see: https://dochub.mongodb.org/core/install-atlas-cli." + upgradeInstructions = "To upgrade, see: https://dochub.mongodb.org/core/install-atlas-cli" } newVersionTemplate := ` A new version of atlascli is available '%s'! %s -To disable this alert, run "%s config set skip_update_check true". +To disable this alert, run "%s config set skip_update_check true" ` _, err = fmt.Fprintf(n.writer, newVersionTemplate, release.Version, upgradeInstructions, config.BinName()) return err diff --git a/internal/cli/root/atlas/builder_test.go b/internal/cli/root/atlas/builder_test.go index 8f7839fe8e..ddf70d80b3 100644 --- a/internal/cli/root/atlas/builder_test.go +++ b/internal/cli/root/atlas/builder_test.go @@ -83,9 +83,9 @@ func TestOutputOpts_notifyIfApplicable(t *testing.T) { if tt.expectNewVersion { want = fmt.Sprintf(` A new version of atlascli is available '%v'! -To upgrade, see: https://dochub.mongodb.org/core/install-atlas-cli. +To upgrade, see: https://dochub.mongodb.org/core/install-atlas-cli -To disable this alert, run "%s config set skip_update_check true". +To disable this alert, run "%s config set skip_update_check true" `, v, config.BinName()) }