fix(completion): preserve the published argument struct - #1501
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (6)
Included review availability: Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughThe completion command now imports shared ChangesCompletion argument separation
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This change restores the published completion argument interface while retaining the CLI-only --bin option and its completion filtering behavior. No merge-blocking current-head risk is identified. Sequence Diagram(s)sequenceDiagram
participant CLI
participant Completion
participant run_selected
CLI->>Completion: Parse CompletionCliArgs
Completion->>run_selected: Pass CompletionArgs and bin
run_selected->>run_selected: Apply executable filtering and completion options
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 60.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 3 files. (3 skipped: 3 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 Clippy (1.97.1)Clippy execution timed out Comment |
The late API check on #1496 caught an accidental Rust API break: adding
CompletionArgs.binprevents existing callers from constructing the public struct with its original fields.Move executable selection into a crate-private
CompletionCliArgs, keep the publicCompletionArgsandcompletion::runinterface compatible with v2.2.11, and preserveaube completion SHELL --bin PROGRAMbehavior. Regenerate the CLI metadata and documentation.Validation:
cargo-semver-checks --baseline-rev v2.2.11 --package aube: all 223 checks pass, no semver update required.The advisory CI comparison against current
mainmay report removal of the field introduced in #1496. That removal is intentional: this restores the v2.2.11 API, as verified above, while retaining the CLI feature in a private type.AI-assisted — Tool: Codex; model: OpenAI/GPT-6; version: unavailable.
Summary by CodeRabbit
Documentation
--bin,--force, and--install.Tests