Skip to content
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

task: remove the atlas folder for commands #2802

Merged
merged 1 commit into from
Mar 25, 2024
Merged

task: remove the atlas folder for commands #2802

merged 1 commit into from
Mar 25, 2024

Conversation

gssbzn
Copy link
Collaborator

@gssbzn gssbzn commented Mar 25, 2024

deep nesting makes certain commands like go fmt or go test slower now that everything is atlas we can simplify some of our folder structure a little

Flatten the folder structure since everything is atlas now so no need for a cli/atlas folder to differentiate the from the old ops manager/cloud manager commands

This change is only file moves and import fixes, no other changes

@gssbzn gssbzn requested a review from a team as a code owner March 25, 2024 11:50
@gssbzn gssbzn requested a review from a team March 25, 2024 11:50
@@ -24,7 +24,7 @@ import (

"github.com/AlecAivazis/survey/v2"
"github.com/AlecAivazis/survey/v2/core"
"github.com/mongodb/mongodb-atlas-cli/atlascli/internal/cli/root/atlas"
"github.com/mongodb/mongodb-atlas-cli/atlascli/internal/cli/root"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

won't this affect go:generate mockgen references as well?

both destination=. and package reference, ok if we want to do a follow-up PR but mock generation may be broken meanwhile so may be worth to get next PR ready

Copy link
Collaborator Author

@gssbzn gssbzn Mar 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

won't this affect go:generate mockgen references as well?

No, I fixed the mocks and ran make gen-mock after my commit to confirm there are no changes as expected

@gssbzn gssbzn requested a review from blva March 25, 2024 11:58
@gssbzn gssbzn merged commit 0fb5423 into master Mar 25, 2024
18 checks passed
@gssbzn gssbzn deleted the atlas-level-gone branch March 25, 2024 12:13
@fmenezes fmenezes mentioned this pull request Apr 5, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants