ShellOptions class
Shell options.
Constructors
-
ShellOptions({bool throwOnError = true, String? workingDirectory, Map<
String, String> ? environment, bool includeParentEnvironment = true, bool? runInShell, Encoding? stdoutEncoding, Encoding? stderrEncoding, Stream<List< ? stdin, StreamSink<int> >List< ? stdout, StreamSink<int> >List< ? stderr, bool verbose = true, bool? commandVerbose, bool? commentVerbose, bool? noStdoutResult, bool? noStderrResult})int> > -
throwOnError
means that if an exit code is not 0, it will throw an error
Properties
- commandVerbose → bool
-
True if commands are displayed.
no setter
- commentVerbose → bool
-
True if comments are displayed.
no setter
- environment → ShellEnvironment
-
Full environment used (including parent environment).
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- noStderrResult → bool?
-
True if ProcessResult should not contain stderr
no setter
- noStdoutResult → bool?
-
True if ProcessResult should not contain stdout
no setter
- runInShell → bool?
-
True if runInShell is specified.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stderr
→ StreamSink<
List< ?int> > -
stderr.
no setter
- stderrEncoding → Encoding?
-
stderr encoding.
no setter
-
stdin
→ Stream<
List< ?int> > -
stdin.
no setter
-
stdout
→ StreamSink<
List< ?int> > -
stdout.
no setter
- stdoutEncoding → Encoding?
-
stdout encoding.
no setter
- throwOnError → bool
-
True if it should throw if an error occurred.
no setter
- verbose → bool
-
True if verbose is turned on.
no setter
- workingDirectory → String?
-
Specified working directory (null for not specified).
no setter
Methods
-
clone(
{bool? throwOnError, String? workingDirectory, bool? runInShell, Encoding? stdoutEncoding, Encoding? stderrEncoding, Stream< List< ? stdin, StreamSink<int> >List< ? stdout, StreamSink<int> >List< ? stderr, bool? verbose, bool? commandVerbose, bool? commentVerbose, bool? noStdoutResult, bool? noStderrResult, ShellEnvironment? shellEnvironment}) → ShellOptionsint> > - Create a new shell
-
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