-
Notifications
You must be signed in to change notification settings - Fork 87
CLOUDP-234527 Remove mongocli 2nd followup #2706
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -109,18 +109,11 @@ func ExampleAtlasEntryPoint() string { | |||
return exampleBin | |||
} | |||
exampleBin = config.BinName() | |||
if exampleBin == config.MongoCLI { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe worth dropping the function altogether but that may be a bigger PR, ok for a followup
return exampleBin | ||
} | ||
|
||
// DescriptionServiceName returns the name of the service that uses a given IAM command. | ||
func DescriptionServiceName() string { | ||
exampleBin = config.BinName() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
internal/cli/root/atlas/builder.go
Outdated
@@ -345,18 +344,18 @@ func (n *Notifier) notifyIfApplicable(isHb bool) error { | |||
|
|||
var upgradeInstructions string | |||
if isHb { | |||
upgradeInstructions = fmt.Sprintf(`To upgrade, run "brew update && brew upgrade %s".`, homebrew.FormulaName(config.ToolName)) | |||
upgradeInstructions = fmt.Sprintf(`To upgrade, run "brew update && brew upgrade %s".`, homebrew.FormulaName()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same above, maybe worth removing the function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Proposed changes
Remove mongocli (followup from #2705), this is removing unused code and refactoring tool_name
Jira ticket: CLOUDP-234527
Closes #[issue number]
Checklist
make fmt
and formatted my codeFurther comments