FlutterReleaseXHooksService class
Service responsible for installing, uninstalling, listing, and running FRX-managed git hooks.
Constructors
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
-
install(
{required HooksConfigModel hooksConfig, String? configPath, String? projectDir}) → Future< void> -
Installs all enabled hooks from
hooksConfiginto.git/hooks/. -
list(
{required HooksConfigModel hooksConfig, String? projectDir}) → Future< void> -
Prints a summary table of all hooks in
hooksConfigand their installation status on disk. -
runHook(
{required String hookName, required HooksConfigModel hooksConfig, String? configPath, bool exitOnFailure = true}) → Future< HookRunResult> -
Executes all steps of the hook named
hookName. -
uninstall(
{String? hookName, String? projectDir}) → Future< void> -
Removes FRX-managed hooks from
.git/hooks/. -
validateConfig(
HooksConfigModel hooksConfig) → bool -
Validates the hook configuration and prints actionable errors.
Returns
trueif validation passes.