chore: implement assign organization roles from the cli (#13558)

Basic functionality to assign roles to an organization member via cli.
This commit is contained in:
Steven Masley
2024-06-13 09:49:32 -10:00
committed by GitHub
parent 87a172fb14
commit 7d51515f9d
3 changed files with 119 additions and 5 deletions

View File

@ -23,7 +23,7 @@ func TestListOrganizationMembers(t *testing.T) {
client, user := coderdtest.CreateAnotherUser(t, ownerClient, owner.OrganizationID, rbac.RoleUserAdmin())
ctx := testutil.Context(t, testutil.WaitMedium)
inv, root := clitest.New(t, "organization", "members", "-c", "user_id,username,roles")
inv, root := clitest.New(t, "organization", "members", "list", "-c", "user_id,username,roles")
clitest.SetupConfig(t, client, root)
buf := new(bytes.Buffer)