HookStepModel class

A single step within a git hook.

Constructors

HookStepModel({required String name, required String command, Map<String, String>? env, String? workingDirectory, int? timeout, bool allowFailure = false, String? description})
HookStepModel.fromYaml(Map<String, dynamic> yamlMap)
factory

Properties

allowFailure → bool
If true, a failing step is logged but does NOT abort the hook.
final
command → String
final
description → String?
Human-readable description.
final
env → Map<String, String>?
Per-step environment variables.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timeout → int?
Timeout in seconds. Step is killed if exceeded.
final
workingDirectory → String?
Working directory override.
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