ProgramRunner class

A helper class to run subprocessed easily.

Constructors

ProgramRunner({required TaskLogger logger})
Default constructor.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
logger TaskLogger
The TaskLogger instance used by this task.
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(String program, List<String> arguments) Future<int>
Runs a program until exited and returns the exit code.
stream(String program, List<String> arguments, {bool failOnExit = true}) Stream<String>
Runs a program and streams the output, line by line.
toString() String
A string representation of this object.
inherited

Operators

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