Skip to content

docs(cli): say plainly what each item does - #189

Open
PiquelChips wants to merge 1 commit into
mainfrom
docs/cli
Open

PiquelChips wants to merge 1 commit into
mainfrom
docs/cli

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

Many doc comments on main were hard to follow: long single sentences, design asides and rationale mixed into what should say what an item does. This rewrites them so each one says plainly what the item does, and nothing else a caller doesn't need.

It covers the command line (cli.rs), the workspace commands (workspace/), the working tree and stat cache (worktree.rs), config, output, the test fixtures and xtask. 135 doc comments are rewritten; the ones that were already clear are left alone.

Only /// and //! lines change: no code, and every code example (doc tests included) is byte-for-byte the same. # Errors and # Panics sections are kept, with the failure cases listed plainly; a few that missed a case now list it. Clippy, the doc tests and cargo doc pass with no new warnings.

This is one of five docs PRs on main, each touching different files, so they merge in any order. The open stack's own docs were rewritten the same way.

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b31f8f70-cf0a-46ae-a3a9-59a754abf8de
Commits

Reviewing files that changed from the base of the PR and between 90139cc and 0f7b4d2.

Files selected for processing: 10

  • apps/origin-src/src/cli.rs
  • apps/origin-src/src/config.rs
  • apps/origin-src/src/fixture.rs
  • apps/origin-src/src/lib.rs
  • apps/origin-src/src/output.rs
  • apps/origin-src/src/workspace/annotate.rs
  • apps/origin-src/src/workspace/mod.rs
  • apps/origin-src/src/worktree.rs
  • apps/origin-src/tests/cli.rs
  • tools/xtask/src/main.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Rewrites the doc comments of these files so each says plainly what its item does, without design asides. Code and code examples are unchanged.
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