Skip to content

Commit 0fb5423

Browse files
author
Gustavo Bazan
authored
task: remove the atlas folder for commands (#2802)
1 parent 9fbcd2c commit 0fb5423

File tree

879 files changed

+180
-180
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

879 files changed

+180
-180
lines changed

cmd/atlas/atlas.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424

2525
"github.com/AlecAivazis/survey/v2"
2626
"github.com/AlecAivazis/survey/v2/core"
27-
"github.com/mongodb/mongodb-atlas-cli/atlascli/internal/cli/root/atlas"
27+
"github.com/mongodb/mongodb-atlas-cli/atlascli/internal/cli/root"
2828
"github.com/mongodb/mongodb-atlas-cli/atlascli/internal/config"
2929
"github.com/mongodb/mongodb-atlas-cli/atlascli/internal/telemetry"
3030
"github.com/mongodb/mongodb-atlas-cli/atlascli/internal/terminal"
@@ -35,7 +35,7 @@ import (
3535
// This is called by main.main(). It only needs to happen once to the rootCmd.
3636
func Execute() {
3737
ctx := telemetry.NewContext()
38-
rootCmd := atlas.Builder()
38+
rootCmd := root.Builder()
3939
// append here to avoid a recursive link on generated docs
4040
rootCmd.Long += `
4141
@@ -158,7 +158,7 @@ func trackInitError(e error) {
158158
if e == nil {
159159
return
160160
}
161-
if cmd, args, err := atlas.Builder().Find(os.Args[1:]); err == nil {
161+
if cmd, args, err := root.Builder().Find(os.Args[1:]); err == nil {
162162
if !telemetry.StartedTrackingCommand() {
163163
telemetry.StartTrackingCommand(cmd, args)
164164
}
@@ -170,7 +170,7 @@ func trackInitError(e error) {
170170
}
171171

172172
func initTrack() {
173-
cmd, args, _ := atlas.Builder().Find(os.Args[1:])
173+
cmd, args, _ := root.Builder().Find(os.Args[1:])
174174
telemetry.StartTrackingCommand(cmd, args)
175175
}
176176

0 commit comments

Comments
 (0)