Skip to content

Commit

Permalink
CLOUDP-121186: [AtlasCLI] Update commands's description that still ha…
Browse files Browse the repository at this point in the history
…ve ops manager (#1156)
  • Loading branch information
andreaangiolillo committed Apr 28, 2022
1 parent 1d01b67 commit dd2a295
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 6 deletions.
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
1 change: 1 addition & 0 deletions internal/cli/iam/organizations/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
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

0 comments on commit dd2a295

Please sign in to comment.