[ef-32] refactor: rename CLI flags, config fields, and config filename#28
Conversation
…e for clarity - --custom-hooks → --custom (install), --remove-custom-hooks → --custom (remove) - --beta-only → --beta for --remove-policies - customHooksPath → customPoliciesPath throughout source, tests, and docs - hooks-config.json → policies-config.json (and hooks-config.local.json → policies-config.local.json) - Add --help / -h command with full usage output - Unknown flag error now hints to run --help Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (26)
📝 WalkthroughWalkthroughThe PR systematically renames configuration and CLI terminology from "hooks" to "policies" across the codebase. This includes updating configuration file paths from Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
Summary
--custom-hooks→--customfor--install-policies;--remove-custom-hooks→--custommoved to--remove-policies--beta-only→--betafor--remove-policies(consistent with install)customHooksPath→customPoliciesPathacross all source, tests, and docshooks-config.json→policies-config.json(andhooks-config.local.json→policies-config.local.json) in all path references--help/-hcommand added with full usage outputRun \failproofai --help` for usage details.`Test plan
failproofai --helpprints full usage and exits 0failproofai -hsamefailproofai --install-policies --custom ./my-policies.jssetscustomPoliciesPathinpolicies-config.jsonfailproofai --remove-policies --customclearscustomPoliciesPathfailproofai --remove-policies --betaremoves only beta policies--foo) prints did-you-mean + help hint🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
--help/-hcommand to display CLI usage and examples.Breaking Changes
hooks-config.json→policies-config.jsoncustomHooksPath→customPoliciesPath--custom-hooks→--custom(for--install-policies)--remove-custom-hooks→--custom(for--remove-policies)Documentation