fix(init): document and uninstall managed hooks
Merged
MI
1mo ago+1256+1256+0123456789012345678901234567890123456789-253-253-012345678901234567890123456789
Summary
- Document that
init --install-hookinstalls bothprepare-commit-msgandpost-commithooks. - Print the full path of each installed hook.
- Add reversible
init --uninstall-hooksupport that restores existing hooks and preserves user replacements. - Add regression coverage for installation, repeated installation, restoration, removal, and user-hook protection.
Fixes #278
Issue: https://github.com/404-PF/commit-echo/issues/278
Testing
npm run buildnpx tsc --noEmitnpm run format:checknpm test(369 passed, 4 skipped; the 2 pre-existing failures also reproduce onmain)