File tree Expand file tree Collapse file tree 3 files changed +5
-62
lines changed Expand file tree Collapse file tree 3 files changed +5
-62
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -51,15 +51,13 @@ Inherited Options
51
51
Related Commands
52
52
----------------
53
53
54
- * :ref:`atlas-users-delete` - Delete an Ops Manager user.
55
54
* :ref:`atlas-users-describe` - Get a user by username or id.
56
55
* :ref:`atlas-users-invite` - Invite a user.
57
56
58
57
59
58
.. toctree::
60
59
:titlesonly:
61
60
62
- delete </command/atlas-users-delete>
63
61
describe </command/atlas-users-describe>
64
62
invite </command/atlas-users-invite>
65
63
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ package users
16
16
17
17
import (
18
18
"github.com/mongodb/mongocli/internal/cli"
19
+ "github.com/mongodb/mongocli/internal/config"
19
20
"github.com/spf13/cobra"
20
21
)
21
22
@@ -31,8 +32,11 @@ func Builder() *cobra.Command {
31
32
cmd .AddCommand (
32
33
InviteBuilder (),
33
34
DescribeBuilder (),
34
- DeleteBuilder (),
35
35
)
36
36
37
+ if config .ToolName == config .MongoCLI {
38
+ cmd .AddCommand (DeleteBuilder ())
39
+ }
40
+
37
41
return cmd
38
42
}
You can’t perform that action at this time.
0 commit comments