Make numan completions install by default - #105
Conversation
Create parent directories and write the script for each shell; keep --print for stdout piping and custom redirects. Co-authored-by: Cursor <cursoragent@cursor.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Sorry @tonythethompson, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
|
Warning Review limit reached
Next review available in: 54 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
✨ Simplify code
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. Comment |
PR Summary by QodoInstall
AI Description
Diagram
High-Level Assessment
Files changed (5)
|
Co-authored-by: Cursor <cursoragent@cursor.com>
There was a problem hiding this comment.
Pull request overview
This PR changes numan completions <shell> from “print-to-stdout by default” to “install-to-canonical-path by default”, adding a --print flag to preserve the prior pipe/redirect workflow while keeping copy-ready hints on stderr.
Changes:
- Add
--printmode and default install behavior (mkdir -p+ write) for completion scripts. - Introduce canonical per-shell install paths and shared
install_to(...)helper. - Update documentation, changelog, and tests to match the new UX.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
src/cmd/completions.rs |
Implements default install flow, --print behavior, canonical paths, and updated hint logic. |
tests/completions_test.rs |
Updates hint test and adds coverage for install-to-path behavior across shells. |
README.md |
Documents new default install behavior and --print usage. |
CHANGELOG.md |
Notes the default behavior change for numan completions. |
AGENTS.md |
Updates command description to reflect install-by-default + --print. |
Greptile SummaryThe PR changes
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| src/cmd/completions.rs | Implements default completion installation, XDG-aware Fish paths, ownership validation, and atomic replacement; both previously reported issues are resolved. |
| tests/completions_test.rs | Adds coverage for parent-directory creation across supported shells and updates print-hint assertions. |
| src/cli.rs | Updates completion-command help to describe installation-by-default and the --print escape hatch. |
| README.md | Documents the new default installation workflow and explicit printing or redirection behavior. |
Reviews (2): Last reviewed commit: "Honor XDG_CONFIG_HOME for Fish completio..." | Re-trigger Greptile
Code Review by Qodo
1.
|
Qodo FixerNo findings are within the configured fix scope. To change which findings are fixed, adjust the setting on your Qodo configuration page. |
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Summary
numan completions <shell>now installs to the canonical path and creates parent directories (mkdir+ write), so redirects no longer fail on a missing completion dir--printkeeps the previous stdout behavior for piping and custom redirectsTest plan
cargo test completionscargo clippy -- -D warningsnuman completions bashand confirm~/.local/share/bash-completion/completions/numanis creatednuman completions bash --print | headand confirm script-only stdoutMade with Cursor