Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

CLI Org support #11927

Closed
Closed
Assignees
Emyrk
Labels
design neededRequest for more beautyneeds decisionNeeds a higher-level decision to be unblocked.
@Emyrk

Description

@Emyrk

coder/cli/root.go

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.

Metadata

Metadata

Assignees

Labels

design neededRequest for more beautyneeds decisionNeeds a higher-level decision to be unblocked.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp