HookStack class final

Hooks that are running or have run in this tree of dpk processes.

dpk passes the stack to child processes in variable. A nested dpk call skips any hook on the stack, so a hook that calls dpk run cannot loop, and a shared hook runs once even when a script starts dpk again in each workspace package.

Constructors

HookStack([Set<String> entries = const {}])
const
HookStack.fromEnvironment(Map<String, String> environment)
factory

Properties

entries → Set<String>
Entries in the form <workspace root>#<hook name>, so hooks in another project are never mistaken for these.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

adding(String rootPath, Iterable<String> hooks) → HookStack
contains(String rootPath, String hook) → bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toEnvironment() → Map<String, String>
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

variable → const String