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

chore: add cli command to fetch group sync settings as json#14694

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 9 commits intomainfromstevenmasley/group_sync_cli
Sep 17, 2024

Conversation

@Emyrk
Copy link
Member

@EmyrkEmyrk commentedSep 16, 2024
edited
Loading

CLI commands to read and update role + group sync runtime settings. All settings are in json and take in input viastdin. Currently the cli is intentionally a bit obtuse in it's UX.

This is an MVP for setting the runtime values. The CLI and UI experience will be improved after GA.

Groupsync

$ coder organization  settings show groupsync --org=rabbit                                                                                               {"field":"","mapping": null,"regex_filter": null,"auto_create_missing_groups":false}

And setting

$ coder organization  settingsset groupsync --org=rabbit< input.json

Rolesync

$ coder organization  settings show rolesync --org=rabbit{"field":"","mapping": null}

And setting

$ coder organization  settingsset rolesync --org=rabbit< input.json

Improved error message:

Probably should have thrown this in another PR. In testing, I improved the error message for my own convenience.

error: Must select an organization with --org=<org_name>. Choose from "coder", "rabbit"

Closes#14687

@EmyrkEmyrkforce-pushed thestevenmasley/group_sync_cli branch fromaa16f9b to87b9c45CompareSeptember 17, 2024 15:47
@EmyrkEmyrk requested a review fromf0sselSeptember 17, 2024 17:08
@EmyrkEmyrk requested a review fromf0sselSeptember 17, 2024 18:11
@EmyrkEmyrk merged commitd96adad intomainSep 17, 2024
@EmyrkEmyrk deleted the stevenmasley/group_sync_cli branchSeptember 17, 2024 19:08
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsSep 17, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@f0sself0sself0ssel approved these changes

Assignees

@EmyrkEmyrk

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Implement Group and Role Sync CLI

3 participants

@Emyrk@f0ssel

[8]ページ先頭

©2009-2025 Movatter.jp