HookModel class

Configuration for a single git hook, e.g. pre-commit.

Constructors

HookModel({required String name, bool enabled = false, List<HookStepModel> steps = const [], String? runPipeline, bool stopOnFailure = true, String? description})
HookModel.fromYaml(String name, Map<String, dynamic> yamlMap)
factory

Properties

description String?
Optional human-readable description shown in frx hooks list.
final
enabled bool
Whether this hook is installed/active. Defaults to false.
final
hashCode int
The hash code for this object.
no setterinherited
hasPipeline bool
no setter
hasSteps bool
no setter
name String
Git hook name, e.g. pre-commit.
final
runPipeline String?
If set, runs a named FRX pipeline instead of inline steps. Pipeline must exist in the pipelines: section of config.yaml.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
steps List<HookStepModel>
Inline steps to run sequentially.
final
stopOnFailure bool
If true (default), abort git operation when any step fails (exit code != 0).
final

Methods

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

Operators

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