feat: add shell completion support#116
Conversation
📝 WalkthroughWalkthroughA new shell completion feature is introduced using the Changes
Sequence DiagramsequenceDiagram
participant User
participant CLI as Clap CLI Parser
participant Main as src/main.rs
participant CompMod as completion module
participant Stdout as Shell Stdout
User->>CLI: lumen completion bash
CLI->>Main: Route Completion{shell: Bash}
Main->>CompMod: generate_completions(Bash)
CompMod->>CompMod: Build CLI schema (Cli::command())
CompMod->>CompMod: Map Bash → clap_complete::Shell
CompMod->>Stdout: Generate & emit completion script
Stdout->>User: Bash completion script
Estimated Code Review Effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
This PR adds shell completion support for multiple shells. Close #109.
Summary by CodeRabbit
New Features
Documentation
Packaging
✏️ Tip: You can customize this high-level summary in your review settings.