Repository navigation
docs(cli): explain opt-in Bash completion setup - #5533
ShuaixinHuang wants to merge 2 commits into
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[Low impact] The documentation changes appear safe to merge. SummaryUpdates
Reviews (2) · Last reviewed commit: "docs(cli): explain Bash startup file beh..." · Reviewed by Greptile |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 18d52c9a9f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary
The CLI guide does not explain how to enable or remove the shell completion already exposed by
rea completions --help. Add a short, opt-in Bash example, persistence/removal instructions, and the currentnosortcompatibility limitation.Related: #5481 (documentation portion only; this does not claim to implement its full acceptance criteria). #5527 reports the system Bash 3.2 limitation recorded here.
Change and scope
One file, 19 added lines. Documentation only; no runtime, dependency, generated metadata or provider changes. No separate capability scope decision is applicable. Completion remains a discovery aid; help is the reference for valid options and subcommands.
Expected effects:
Validation performed
Windows x64, pinned Node 24.18.0/npm 11.16.0, base
c374c2fe7290b914d73d9e27af38b498753ec593:npm run docs:check— six tasks and all five README consistency tests passed.npm exec -- oxfmt --check docs/cli.mdandgit diff --check— passed.node scripts/rea.mjs completions --helpandcompletions bashsucceeded.eval "$(rea completions bash)"using a shell function bound to this checkout;complete -p reashowed registration; a generated-hook callback foranareturnedanalyze,analyze-web-bundle, andanalyze-javascript-application;complete -r rearemoved registration.npm run check:fast— typecheck and lint both passed.-o nosort. Other shells and completion contexts were not exercised. No real analysis provider was needed or tested.Author readiness
Human owner: @ShuaixinHuang
Maintainer blocker verification
The guide now distinguishes interactive non-login Bash (
.bashrc) from login Bash, which reads the first existing.bash_profile,.bash_login, or.profile. Users are told to add completion to the file actually read or source.bashrcthere; removal guidance remains.On Node 24.18.0/npm 11.16.0,
npm run docs:checkpassed (6 tasks, 5 README consistency tests), as did Oxfmt andgit diff --check; the pushcheck:fastpassed. This pass did not run shell startup integration. The source diff now includes the login-shell correction; the old one-file/19-line size description predates that correction.Replacement
Closed at the author's request and resubmitted as #6250: #6250. The replacement preserves this PR's final documentation patch and login-shell correction.