Shell class

Wrapper over package:process Process API's that supports features like environment management, user switches, and more.

Constructors

Shell({ProcessManager processManager: const LocalProcessManager(), bool includeParentEnvironment: true, String workingDirectory, bool sudo: false, bool runInShell: true, String username, String password, Map<String, String> environment: const {}})
Shell.copy(Shell other)
factory

Properties

environment → Map<String, String>
final
includeParentEnvironment ↔ bool
read / write
password ↔ String
read / write
processManager ProcessManager
final
runInShell ↔ bool
read / write
sudo ↔ bool
read / write
username ↔ String
read / write
workingDirectory ↔ String
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

run(String executable, Iterable<String> arguments) → Future<ProcessResult>
start(String executable, Iterable<String> arguments) → Future<WrappedProcess>
startAndReadAsString(String executable, Iterable<String> arguments, {Encoding encoding: utf8, List<int> acceptedExitCodes: const [0]}) → Future<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

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