hooksman library

Classes

AllFiles
A pattern that matches all files. This class implements the Pattern interface and can be used to match any file path.
DartTask
A task that runs Dart code on a set of files.
Glob
A glob for matching and listing files and directories.
Hook
The Hook class represents a Git hook configuration that defines a set of tasks to be executed during specific Git hook events. This class allows you to automate checks, validations, or any custom scripts to ensure code quality and consistency across your repository.
HookTask
An abstract class representing a task to be executed as part of a Git hook.
ParallelTasks
A task that runs a series of sub-tasks in parallel on a set of files.
ReRegisterHooks
The ReRegisterHooks task automates the process of re-registering Git hooks whenever any hook files are created, modified, or deleted. This ensures that changes to your hooks are applied, as Dart files are compiled into executables and copied to the .git/hooks directory.
SequentialTask
A task that runs a series of sub-tasks sequentially on a set of files.
SequentialTasks
A task that runs a series of sub-tasks sequentially on a set of files.
ShellTask
A task that runs a series of shell commands sequentially on a set of files.
VerboseHook
The VerboseHook class extends the Hook class to provide verbose output during the execution of tasks. This class is useful for understanding the order of execution and the files being processed.

Functions

executeHook(String name, Hook hook) Future<void>

Typedefs

Run = FutureOr<int> Function(List<String>)
ShellCommands = List<String> Function(Iterable<String>)