herdsman 1.0.5 copy "herdsman: ^1.0.5" to clipboard
herdsman: ^1.0.5 copied to clipboard

Manage Git hooks in a centralized way. Analog husky in JS

example/example.dart

import 'package:herdsman/active.dart';
import 'package:herdsman/add.dart';
import 'package:herdsman/delete.dart';
import 'package:herdsman/init.dart';

void main() async {
  // Initialize the .herdsman/githooks directory
  await init(verbose: true);

  // Add a pre-commit hook
  await add(hookName: 'pre-commit', verbose: true);

  // Activate all hooks
  active(verbose: true);

  // Remove a hook
  delete(hookName: 'pre-commit', verbose: true);
}
1
likes
160
points
325
downloads

Documentation

API reference

Publisher

verified publishercontributors.info

Weekly Downloads

Manage Git hooks in a centralized way. Analog husky in JS

Repository (GitHub)
View/report issues

Topics

#husky #git-hooks #git #cli

License

BSD-3-Clause (license)

Dependencies

args

More

Packages that depend on herdsman