ScriptExecutor class final
Runs a shell command according to a RunPlan.
Constructors
- ScriptExecutor({required ProcessRunner processRunner, required Console console, required Workspace workspace})
Properties
- console → Console
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- processRunner → ProcessRunner
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- workspace → Workspace
-
final
Methods
-
execute(
RunPlan plan, String command, {Map< String, String> environment = const {}}) → Future<int> -
Runs
commandin every package ofplanand returns the exit code: 0, or the exit code of the first failed package in plan order. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited