8000 chore: add cli command to fetch group sync settings as json by Emyrk · Pull Request #14694 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Sep 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
linting
  • Loading branch information
Emyrk committed Sep 17, 2024
commit 4e0146f217fd6254bcdf4252dc5fd2c22ee3f454
4 changes: 2 additions & 2 deletions cli/organizationsettings.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ func (r *RootCmd) printOrganizationSetting(orgContext *OrganizationContext) *ser
return fmt.Errorf("failed to get organization setting %s: %w", inv.Args[0], err)
}

settingJson, err := json.Marshal(setting)
settingJSON, err := json.Marshal(setting)
if err != nil {
return fmt.Errorf("failed to marshal organization setting %s: %w", inv.Args[0], err)
}

var dst bytes.Buffer
err = json.Indent(&dst, settingJson, "", "\t")
err = json.Indent(&dst, settingJSON, "", "\t")
if err != nil {
return fmt.Errorf("failed to indent organization setting as json %s: %w", inv.Args[0], err)
}
Expand Down
0