Skip to content

fix(hooks): support native CyberFerret CLI - #15

Merged
exadmin merged 1 commit into
exadmin:mainfrom
IldarMinaev:fix/go-pre-commit-hook
Jul 23, 2026
Merged

fix(hooks): support native CyberFerret CLI#15
exadmin merged 1 commit into
exadmin:mainfrom
IldarMinaev:fix/go-pre-commit-hook

Conversation

@IldarMinaev

Copy link
Copy Markdown
Contributor

Summary

  • Replace the Java JAR bootstrap with platform-specific CyberFerret CLI release downloads and run staged files in quick mode.
  • Publish Linux, Windows, and macOS binaries for amd64 and arm64 from the CF CLI release workflow.
  • Add a CI integration test that installs pre-commit, loads the repository hook, and verifies native asset selection, staged-file forwarding, and CLI arguments.

Testing

  • mvn test
  • go test -count=1 ./...
  • go vet ./...
  • Cross-compiled all six release targets with CGO disabled
  • bash hooks/tests/cyberferret_hook_test.sh
  • shellcheck hooks/cyberferret.sh hooks/tests/cyberferret_hook_test.sh
  • actionlint .github/workflows/cfcli-release.yml .github/workflows/pre-commit-hook.yml

@exadmin
exadmin merged commit 3dce34e into exadmin:main Jul 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants