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

feat: implement global flag for org selection#12276

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Emyrk merged 4 commits intomainfromstevenmasley/org_flag
Feb 26, 2024
Merged

Conversation

Emyrk
Copy link
Member

@EmyrkEmyrk commentedFeb 23, 2024
edited
Loading

What this does

Adds a flag-z <org_name | org_id> that selects a given org. Works on all commands. This allows overriding whatever is in the config setting.

I used-z rather than-o because-o is used for--output.

$ coder organizations currentCurrent organization: steven-org (9616b384-38bb-4284-861b-8db4fc337d6d)coder organizations current -z adminCurrent organization: admin (653e414b-9eb7-41cb-b11c-38cf90b29db3)

@EmyrkEmyrk requested a review frommafredriFebruary 23, 2024 01:46
@EmyrkEmyrk mentioned this pull requestFeb 23, 2024
Copy link
Member

@mafredrimafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Sorry for the delayed review, missed this PR last week.

cli/root.go Outdated
Flag: varOrganizationSelect,
FlagShorthand: "z",
Env: "CODER_ORGANIZATION",
Description: "Select which organization (uuid or name) to use as default. This overrides what is present in the config file.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
Description:"Select which organization (uuid or name) to use as default. This overrides what is present in the config file.",
Description:"Select which organization (uuid or name) to use. This overrides what is present in the config file.",

I think the default terminology here could be confusing.

Base automatically changed fromstevenmasley/select-org tomainFebruary 26, 2024 16:03
Any command can use '-z' to override org context
@EmyrkEmyrk merged commit748cf4b intomainFeb 26, 2024
@EmyrkEmyrk deleted the stevenmasley/org_flag branchFebruary 26, 2024 17:38
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsFeb 26, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@mafredrimafredrimafredri approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@Emyrk@mafredri

[8]ページ先頭

©2009-2025 Movatter.jp