Repository navigation
fix: address CodeRabbit review — shell hook improvements - #73
Conversation
- Add hook scripts for bash, zsh, fish in scripts/shell/ - Add 'uteke hook <shell>' CLI subcommand - Hooks detect .uteke/uteke.db and set UTEKE_PROJECT_STORE env var - bash: PROMPT_COMMAND, zsh: chpwd_functions, fish: --on-variable PWD Closes #47
- Add parent directory search to all hook scripts (walk up to root) - Use include_str! to load scripts from canonical files (no duplication) - Add SupportedShell enum for parse-time validation - Reorder zsh: define function before registering in chpwd_functions See: #72
|
Warning Review limit reached
More reviews will be available in 36 minutes and 29 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
fix: address CodeRabbit review — shell hook improvements
Changes
Addresses all CodeRabbit review comments on PR #72:
.uteke/uteke.db, not just checking current dirscripts/shell/files, no more duplicationString→clap::ValueEnumenum, invalid shells rejected at parse timechpwd_functions+=()registrationVerification
cargo check✓cargo clippy✓cargo test— 18/18 ✓cargo fmt✓Closes #47 (completes shell hook feature)