ShellRunner class abstract

Interface for executing shell commands.

Implementations can be swapped for testing to avoid real process execution.

Implementers

Constructors

ShellRunner()

Properties

hashCode → int
The hash code for this object.
no setterinherited
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 executable, List<String> args) → Future<void>
Runs a command, streaming stdout/stderr to the terminal. Throws on non-zero exit.
runAndCapture(String executable, List<String> args) → Future<ShellResult>
Runs a command and captures its output without printing to the terminal.
setLogger(Logger logger) → void
Updates the logger used for command output. Default no-op.
toString() → String
A string representation of this object.
inherited

Operators

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