LocalShell class final

Minimal local shell backed by dart:io Process.

Executes commands via sh -c (POSIX) or cmd /c (Windows). Streaming callbacks receive output chunks as they arrive; timeout and cancellation kill the process. This is the v1 shell — pi's richer bash-discovery logic is deferred until a tool actually needs it.

Implemented types

Constructors

LocalShell()
Creates a LocalShell.
const

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

exec(String command, {ShellExecOptions? options}) Future<Result<ShellExecResult, ExecutionError>>
Executes a shell command. Must never throw: all failures are encoded in the returned Result.
override
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