mirror of
https://github.com/coder/coder.git
synced 2026-10-16 14:48:56 +08:00
refactor(enterprise/cli): replace deprecated GroupsByOrganization in groups list (#30142)
`coder groups list` called the deprecated `GroupsByOrganization`.
It now calls `Groups` with `GroupArguments{Organization: ...}`.
**Behavior change:** None.
`GroupsByOrganization` already wraps the same call, so the request and
response are identical.
Closes [CLI-24](https://linear.app/codercom/issue/CLI-24)
_This PR was generated by Coder Agents on behalf of @nickvigilante._
This commit is contained in:
@@ -38,7 +38,7 @@ func (r *RootCmd) groupList() *serpent.Command {
|
||||
return xerrors.Errorf("current organization: %w", err)
|
||||
}
|
||||
|
||||
groups, err := client.GroupsByOrganization(ctx, org.ID)
|
||||
groups, err := client.Groups(ctx, codersdk.GroupArguments{Organization: org.ID.String()})
|
||||
if err != nil {
|
||||
return xerrors.Errorf("get groups: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user