ProcessRunShell class
A Basic implementation of IShell using package:process_run
since 0.0.1
- Implemented types
- Available Extensions
Constructors
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
-
cmd(
String script) → ShellCommandBuilder -
Prepares a command to be run within an IShell environment.
override
-
copyWith(
{bool? verbose, bool? color, String? workingDirectory, Map< String, String> ? environment, bool? throwOnError}) → IShell -
Clones the current IShell instance, overriding properties as specified
override
-
environment(
) → Map< String, String> -
Returns the current environment
override
-
hasCommand(
String command) → bool -
Returns true if the external command exists
override
-
isVerbose(
) → bool -
Returns true if the current instance is verbose
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requireCommand(
String command) → void -
Throws CommandNotFoundException if the provided command is not present in the $PATH
override
-
run(
String script, {Map< String, String> ? environment, Stream<List< ? stdin, StreamSink<int> >List< ? stdout, List<int> >String> ? args}) → Future<ProcessResult> -
Runs a command within a IShell environment. Returning the commands
result.
May throw CommandExceptions.
override
-
supportsColorOutput(
) → bool -
True if the shell implementation supports color output
override
-
throwsOnError(
) → bool -
True if the shell implementation throws an exception on error
override
-
toString(
) → String -
A string representation of this object.
inherited
-
which(
String cmd) → String? -
Returns the full path location (and name) for a supplied command.
Null if the command was not found.
override
-
workingDirectory(
) → String -
Returns the current working directory
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited