WorkspaceHookRunner class
Runs workspace lifecycle hooks via bash -lc <script> with a timeout.
Constructors
- WorkspaceHookRunner({required Logger logger, int maxOutputBytes = 4096, bool? isWindows})
-
Creates a hook runner. By default
isWindowsis read fromPlatform.isWindows.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isWindows → bool
-
Whether the host platform is Windows. Injectable so tests can pin the
branch independently of the runtime they execute on.
final
- logger → Logger
-
Logger for hook lifecycle messages.
final
- maxOutputBytes → int
-
Maximum bytes of combined stdout/stderr captured per hook (truncated).
final
- 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
-
run(
{required WorkspaceHookKind kind, required String workspacePath, required HooksWorkflowConfig hooks}) → Future< WorkspaceHookOutcome> -
Runs
kindforworkspacePathusing config inhooks. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited