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
hashCode int
The hash code for this object. [...]
read-only, inherited
includeParentEnvironment bool
read / write
password String
read / write
processManager ProcessManager
final
runInShell bool
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sudo bool
read / write
username String
read / write
workingDirectory String
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
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>
toString() String
Returns a string representation of this object.
inherited

Operators

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