dart_hooks 1.0.1 copy "dart_hooks: ^1.0.1" to clipboard
dart_hooks: ^1.0.1 copied to clipboard

Custom Git Hooks

Dart Hooks #

Supported SDK: Dart only

Supported hooks:

  • pre-commit
  • pre-push

Installation #

dart pub add dart_hooks --dev --git-url="https://github.com/errorempire/DartHooks.git"
dart pub get

Usage #

Initialize the hook config file

dart run dart_hooks:init

Modify the dart_hooks.yaml file then run the following command to apply the hook(s)

dart run dart_hooks:apply

Destroy #

The following command will delete the hook(s) and the config file

dart run dart_hooks:destroy

Uninstall the package

dart pub remove dart_hooks

Example Config File #

pre-commit:
  commands:
    - dart analyze
pre-push:
  commands:
    - dart analyze
1
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Custom Git Hooks

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

json2yaml, yaml

More

Packages that depend on dart_hooks