ghooks 0.0.1 copy "ghooks: ^0.0.1" to clipboard
ghooks: ^0.0.1 copied to clipboard

Dart 1 only

A library to easily use git hooks in Dart project.

dart ghooks #

A library to easily use git hooks from Dart

Install #

To start using ghooks, add it to your dev_dependencies and run pub get

To install hooks in your project, run:

$ pub run ghooks install

Add your hook to pubspec.yaml

Example:

    ghooks:
        pre-commit: ./lint.sh && ./test.sh

Install options #

Option/Flag abbreviation description
--precommit-sample none If flag is passed it will create a sample pre commit Dart script. Defaults to false
--hook <hook-name> -k Creates a bash script for the hook passed, supports passing multiple hooks. Defaults to all scripts. Example: -k pre-commit -k commit-msg

Remove #

To remove all hooks in your project, run:

$ pub run ghooks remove

Or if you want to remove a specific hook:

$ pub run ghooks remove -k pre-commit -k commit-msg

Git Hooks #

Git hooks are scripts that run automatically every time a particular event occurs in a Git repository. ghooks supports all git hooks (https://git-scm.com/docs/githooks)

Features and bugs #

Please file feature requests and bugs at the issue tracker.

0
likes
20
pub points
0%
popularity

Publisher

unverified uploader

A library to easily use git hooks in Dart project.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

args, command_wrapper

More

Packages that depend on ghooks