Skip to content

Improve collection list JSON output format#24

Merged
DanielCardonaRojas merged 1 commit intomainfrom
collection_output_format
Apr 21, 2026
Merged

Improve collection list JSON output format#24
DanielCardonaRojas merged 1 commit intomainfrom
collection_output_format

Conversation

@DanielCardonaRojas
Copy link
Copy Markdown
Owner

Summary

  • Fix JSON output for collection list command to use proper object structure instead of tuple arrays
  • Add CollectionWithCount struct with named bookmark_count field
  • Output now shows: { id, name, description, created_at, bookmark_count } instead of [{...collection}, count]

Test plan

codemark collection create test --description "Test"
codemark collection list --format json

Before: [{"id": "...", "name": "test", ...}, 0]
After: {"id": "...", "name": "test", ..., "bookmark_count": 0}

🤖 Generated with Claude Code

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 21, 2026

Warning

Rate limit exceeded

@DanielCardonaRojas has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 16 minutes and 10 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 16 minutes and 10 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 89163b1c-025a-49f8-a202-95115763abbd

📥 Commits

Reviewing files that changed from the base of the PR and between efb455f and 457385c.

📒 Files selected for processing (2)
  • src/cli/handlers.rs
  • src/cli/output.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch collection_output_format

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@DanielCardonaRojas DanielCardonaRojas merged commit 5190d43 into main Apr 21, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant