Visitar URL original
unhide `org role` commands (#23258) · pulumi/pulumi@f821c0d · GitHub
Skip to content

Commit f821c0d

Browse files
authored
unhide org role commands (#23258)
Associated issues are closed: `role assign`: #23004 `role remove`: #23005 `role edit`: #23006 `role new`: #23007 `role list`: #23008
1 parent 9356340 commit f821c0d

6 files changed

Lines changed: 13 additions & 19 deletions

File tree

‎pkg/cmd/pulumi/org/org_role.go‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,9 @@ import (
3333

3434
func newOrgRoleCmd() *cobra.Command {
3535
cmd := &cobra.Command{
36-
Hidden: true,
37-
Use: "role",
38-
Short: "[EXPERIMENTAL] Manage organization custom roles",
39-
Long: "[EXPERIMENTAL] Manage organization custom roles.",
36+
Use: "role",
37+
Short: "[EXPERIMENTAL] Manage organization custom roles",
38+
Long: "[EXPERIMENTAL] Manage organization custom roles.",
4039
RunE: func(cmd *cobra.Command, args []string) error {
4140
return cmd.Help()
4241
},

‎pkg/cmd/pulumi/org/org_role_assign.go‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@ func newOrgRoleAssignCmdWith(factory orgRoleClientFactory) *cobra.Command {
4848
output := defaultRoleAssignOutput()
4949

5050
cmd := &cobra.Command{
51-
Hidden: true,
52-
Use: "assign <role-id> <team>",
53-
Short: "[EXPERIMENTAL] Assign a role to a team",
51+
Use: "assign <role-id> <team>",
52+
Short: "[EXPERIMENTAL] Assign a role to a team",
5453
Long: "[EXPERIMENTAL] Assign a custom role to a team.\n" +
5554
"\n" +
5655
"Each team can hold a single custom role at a time, so running this command\n" +

‎pkg/cmd/pulumi/org/org_role_edit.go‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,8 @@ func newOrgRoleEditCmdWith(factory orgRoleClientFactory) *cobra.Command {
4545
output := defaultRoleSingleOutput()
4646

4747
cmd := &cobra.Command{
48-
Hidden: true,
49-
Use: "edit <role-id>",
50-
Short: "[EXPERIMENTAL] Update a custom role's name, description, or permissions",
48+
Use: "edit <role-id>",
49+
Short: "[EXPERIMENTAL] Update a custom role's name, description, or permissions",
5150
Long: "[EXPERIMENTAL] Update a custom role's name, description, or permissions.\n" +
5251
"\n" +
5352
"Each field follows ternary semantics: a flag that is not passed leaves the\n" +

‎pkg/cmd/pulumi/org/org_role_list.go‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@ func newOrgRoleListCmdWith(factory orgRoleClientFactory) *cobra.Command {
4949
}
5050

5151
cmd := &cobra.Command{
52-
Hidden: true,
53-
Use: "list",
54-
Short: "[EXPERIMENTAL] List custom roles for an organization",
52+
Use: "list",
53+
Short: "[EXPERIMENTAL] List custom roles for an organization",
5554
Long: "[EXPERIMENTAL] List custom roles for an organization.\n" +
5655
"\n" +
5756
"Displays the ID, name, description, UX purpose, and version of each role.\n" +

‎pkg/cmd/pulumi/org/org_role_new.go‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,8 @@ func newOrgRoleNewCmdWith(factory orgRoleClientFactory) *cobra.Command {
4444
output := defaultRoleSingleOutput()
4545

4646
cmd := &cobra.Command{
47-
Hidden: true,
48-
Use: "new <name> <details-file>",
49-
Short: "[EXPERIMENTAL] Create a new custom role for an organization",
47+
Use: "new <name> <details-file>",
48+
Short: "[EXPERIMENTAL] Create a new custom role for an organization",
5049
Long: "[EXPERIMENTAL] Create a new custom role for an organization.\n" +
5150
"\n" +
5251
"The role's permission tree is read from the JSON file at <details-file>.\n" +

‎pkg/cmd/pulumi/org/org_role_remove.go‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,8 @@ func newOrgRoleRemoveCmdWith(factory orgRoleClientFactory, confirm confirmFunc)
7373
output := defaultRoleRemoveOutput()
7474

7575
cmd := &cobra.Command{
76-
Hidden: true,
77-
Use: "remove <role-id>",
78-
Short: "[EXPERIMENTAL] Delete a custom role from an organization",
76+
Use: "remove <role-id>",
77+
Short: "[EXPERIMENTAL] Delete a custom role from an organization",
7978
Long: "[EXPERIMENTAL] Delete a custom role from an organization.\n" +
8079
"\n" +
8180
"Removing a role revokes any permissions it had granted to members and\n" +

0 commit comments

Comments
 (0)