GitHooks class

create files or call hooks functions

Constructors

GitHooks()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

call(List<String> argument, Map<Git, UserBackFun> params) → void
Map<Git, UserBackFun> params = { Git.commitMsg: commitMsg, Git.preCommit: preCommit }; GitHooks.call(arguments, params);
getTargetFilePath({String? path}) Future<String?>
get target file path. returns the path that the git hooks points to.
init({String? targetPath}) → void
create files from dart codes. targetPath is the absolute path
unInstall({String? path}) Future<bool>
unInstall git_hooks