CiProcessRunner class

Runs commands one at a time under the workspace lock, each line of their output to a log file as it arrives.

Constructors

CiProcessRunner({required CiLock lock, String? pathPrefix, void onLockWait(Duration waited)?})

Properties

hashCode → int
The hash code for this object.
no setterinherited
lock → CiLock
final
onLockWait → void Function(Duration waited)?
Told when the lock is held by somebody else, and how long we have waited.
final
pathPrefix → String?
A directory put first on every child's PATH — the Flutter SDK's bin, so a tool the child itself spawns (package_app.dart runs flutter) finds the same SDK this run uses.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

interrupt() → void
Kills the running child, if any, and releases the lock. For Ctrl-C.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(List<CiCommand> commands, {required String logPath, bool append = false}) → Future<CiStepResult>
Runs commands in order into the log at logPath (created, or appended to when append), stopping at the first that fails.
toString() → String
A string representation of this object.
inherited

Operators

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