[ef-32] feat: replace flag-soup with policies verb + non-interactive custom install#31
Conversation
ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (5)
✅ Files skipped from review due to trivial changes (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThe changes migrate the CLI from legacy top-level policy flags ( Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 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 |
…ve prompt for --custom - `failproofai policies` → list policies (was --list-policies) - `failproofai policies --install` → install (was --install-policies) - `failproofai policies --uninstall`→ uninstall (was --remove-policies) - `-i` / `-u` short forms supported - `--custom`/`-c <path>` supported on --install; `--custom`/`-c` on --uninstall - `failproofai policies --help` shows subcommand-specific help - When --custom/-c is given without explicit policy names, skips the interactive TUI and validates the file, then installs silently showing the names of enabled policies (or exits 1 on validation failure) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Summary
--install-policies,--remove-policies,--list-policiesflags with a cleanpoliciessubcommand verbfailproofai policies→ list all policies (default)failproofai policies --install/-i→ install/enable policiesfailproofai policies --uninstall/-u→ uninstall/disable policies--custom/-c <path>supported on--install;--custom/-c(no value) on--uninstallto clear the custom pathfailproofai policies --help/-hshows subcommand-specific help (global--helpno longer intercepts subcommands)--custom/-cis given without explicit policy names, skips the interactive TUI — validates the file first, shows enabled policy names on success, exits 1 with error on failureTest plan
failproofai policieslists policiesfailproofai policies --installopens interactive TUIfailproofai policies --install block-sudoinstalls named policy, no TUIfailproofai policies -i -c ./my-hooks.jsvalidates file, skips TUI, prints enabled policiesfailproofai policies -i -c ./bad-file.jsprints error, exits 1, no config writtenfailproofai policies --uninstall block-sudodisables named policyfailproofai policies -u --customclears custom policy pathfailproofai policies --helpshows policies-specific helpfailproofai --helpshows updated top-level help withpoliciesverb🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
policiessubcommand, replacing legacy top-level flags with streamlined syntax likepolicies --install,policies --uninstall, andpoliciesfor listingDocumentation