CommandRunner class
Process manager for executing command lines
Constructors
- CommandRunner.new({bool useUnixShell = false, String unixShell = 'bash', Encoding? encoding})
Properties
- encoding ↔ Encoding?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unixShell ↔ String
-
getter/setter pair
- useUnixShell ↔ bool
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
String command, {Encoding? encoding, String? workingDirectory, Map< String, String> ? environment, bool includeParentEnvironment = true, bool silent = false, bool noPrompt = false, bool returnCode = false}) → Future - Execute command and returns stdout
-
run$(
List< String> command, {Encoding? encoding, String? workingDirectory, Map<String, String> ? environment, bool includeParentEnvironment = true, bool silent = false, bool noPrompt = false, bool returnCode = false, bool autoQuote = true}) → Future - Execute command and returns stdout
-
runSync(
String command, {Encoding? encoding, String? workingDirectory, Map< String, String> ? environment, bool includeParentEnvironment = true, bool silent = false, bool noPrompt = false, bool returnCode = false}) → dynamic - Execute command and returns stdout
-
runSync$(
List< String> command, {Encoding? encoding, String? workingDirectory, Map<String, String> ? environment, bool includeParentEnvironment = true, bool silent = false, bool noPrompt = false, bool returnCode = false, bool autoQuote = true}) → dynamic - Execute command and returns stdout
-
script(
String script, {List< String> ? arguments, Encoding? encoding, String? workingDirectory, Map<String, String> ? environment, bool includeParentEnvironment = true, bool silent = false, bool noPrompt = false, bool returnCode = false}) → Future -
scriptSync(
String script, {List< String> ? arguments, Encoding? encoding, String? workingDirectory, Map<String, String> ? environment, bool includeParentEnvironment = true, bool silent = false, bool noPrompt = false, bool returnCode = false}) → dynamic -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited