Skip to content

CLOUDP-121186: [AtlasCLI] Update commands's description that still have ops manager #1156

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

Merged
merged 1 commit into from
Apr 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/atlascli/command/atlas-teams.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ atlas teams

Teams operations.

Create, list and manage your Atlas,Cloud Manager or Ops Manager teams.
Create, list and manage your Atlas teams.

Options
-------
Expand Down
2 changes: 1 addition & 1 deletion docs/atlascli/command/atlas-users.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ atlas users

Users operations.

Create, list and manage your Atlas, Cloud Manager or Ops Manager users.
Create, list and manage your Atlas users.

Options
-------
Expand Down
2 changes: 1 addition & 1 deletion docs/mongocli/command/mongocli-iam-teams.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mongocli iam teams

Teams operations.

Create, list and manage your Atlas,Cloud Manager or Ops Manager teams.
Create, list and manage your Cloud Manager or Ops Manager teams.

Options
-------
Expand Down
2 changes: 1 addition & 1 deletion docs/mongocli/command/mongocli-iam-users.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mongocli iam users

Users operations.

Create, list and manage your Atlas, Cloud Manager or Ops Manager users.
Create, list and manage your Cloud Manager or Ops Manager users.

Options
-------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package invitations

import (
Expand Down
1 change: 1 addition & 0 deletions internal/cli/iam/projects/invitations/invitations.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package invitations

import (
Expand Down
8 changes: 7 additions & 1 deletion internal/cli/iam/teams/teams.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,21 @@ package teams
import (
"github.com/mongodb/mongocli/internal/cli"
"github.com/mongodb/mongocli/internal/cli/iam/teams/users"
"github.com/mongodb/mongocli/internal/config"
"github.com/spf13/cobra"
)

func Builder() *cobra.Command {
description := "Create, list and manage your Cloud Manager or Ops Manager teams."
if config.ToolName == config.AtlasCLI {
description = "Create, list and manage your Atlas teams."
}

const use = "teams"
cmd := &cobra.Command{
Use: use,
Short: "Teams operations.",
Long: "Create, list and manage your Atlas,Cloud Manager or Ops Manager teams.",
Long: description,
Aliases: cli.GenerateAliases(use),
}

Expand Down
7 changes: 6 additions & 1 deletion internal/cli/iam/users/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,16 @@ import (
)

func Builder() *cobra.Command {
description := "Create, list and manage your Cloud Manager or Ops Manager users."
if config.ToolName == config.AtlasCLI {
description = "Create, list and manage your Atlas users."
}

const use = "users"
cmd := &cobra.Command{
Use: use,
Short: "Users operations.",
Long: "Create, list and manage your Atlas, Cloud Manager or Ops Manager users.",
Long: description,
Aliases: cli.GenerateAliases(use),
}

Expand Down