-
Notifications
You must be signed in to change notification settings - Fork 881
chore: implement assign organization roles from the cli #13558
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
Conversation
b665268
to
a6744b3
Compare
dfded68
to
1b3a9b7
Compare
a6744b3
to
eacff69
Compare
1b3a9b7
to
e605d37
Compare
eacff69
to
979b3d8
Compare
e605d37
to
d23e335
Compare
979b3d8
to
45f4baa
Compare
d23e335
to
9c1fda7
Compare
45f4baa
to
46067a6
Compare
9c1fda7
to
0012858
Compare
46067a6
to
7d98e6c
Compare
ec0f038
to
24409b0
Compare
@@ -11,16 +12,74 @@ import ( | |||
) | |||
|
|||
func (r *RootCmd) organizationMembers() *serpent.Command { | |||
cmd := &serpent.Command{ | |||
Use: "members", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this ready for end users to start consuming? If not, do we want to start with it hidden?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not, but the parent command is hidden:
Line 24 in a8fe429
Hidden: true, // Hidden until these commands are complete. |
So this is also hidden
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
cli/organizationmembers.go
Outdated
userIdentifier := inv.Args[0] | ||
|
||
member, err := client.UpdateOrganizationMemberRoles(ctx, organization.ID, userIdentifier, codersdk.UpdateRoles{ | ||
Roles: inv.Args[1:], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I would prefer this be declared as a variable under userIdentifier
to be slightly more readable, but dealers choice.
Basic functionality to assign roles to an organization member via cli.
24409b0
to
946a3ac
Compare
Basic functionality to assign roles to an organization member via cli.