- Notifications
You must be signed in to change notification settings - Fork928
Closed
Labels
Milestone
Description
Lines 664 to 673 in993c1a6
// CurrentOrganization returns the currently active organization for the authenticated user. | |
funcCurrentOrganization(inv*clibase.Invocation,client*codersdk.Client) (codersdk.Organization,error) { | |
orgs,err:=client.OrganizationsByUser(inv.Context(),codersdk.Me) | |
iferr!=nil { | |
return codersdk.Organization{},nil | |
} | |
// For now, we won't use the config to set this. | |
// Eventually, we will support changing using "coder switch <org>" | |
returnorgs[0],nil | |
} |
The current cli only supports 1 org. The comment suggests scoping all cli calls to 1 org. Meaningcoder ls
will only show the workspaces in the current org.