dart_husky 1.1.0
dart_husky: ^1.1.0 copied to clipboard
A pure-Dart CLI tool to manage Git hooks (pre-commit, commit-msg, pre-push) in any Dart or Flutter project. Similar to husky and lefthook.
example/example.dart
// Example dart_husky.yaml configuration:
//
// pre-commit:
// commands:
// format:
// run: dart format --set-exit-if-changed .
// analyze:
// run: dart analyze
//
// commit-msg:
// commands:
// conventional:
// preset: conventional
//
// Run: dart run dart_husky install
void main() {
// dart_husky is a CLI tool.
// See README.md for full usage instructions.
}