ShellMixin mixin
Common shared implementation.
Properties
- context → ShellContext
-
Shell context.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- options → ShellOptions
-
Shell options.
no setterinherited
- path → String
-
Get the shell path, using workingDirectory or current directory if null.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cd(
String path) → Shell -
Create new shell at the given path
inherited
-
cloneWithOptions(
ShellOptions options) → Shell - Clone a new shell with the given options.
-
kill(
[ProcessSignal signal = ProcessSignal.sigterm]) → bool -
Kills the current running process.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
popd(
) → Shell -
Pop the current directory to get the previous shell
throw State error if nothing in the stack
inherited
-
pushd(
String path) → Shell -
Create a new shell at the given path, allowing popd on it
inherited
-
run(
String script, {ShellOnProcessCallback? onProcess}) → Future< List< ProcessResult> > -
Run one or multiple plain text command(s).
inherited
-
runExecutableArguments(
String executable, List< String> arguments, {ShellOnProcessCallback? onProcess}) → Future<ProcessResult> -
Run a single
executablewitharguments, resolving theexecutableif needed.inherited -
runExecutableArgumentsSync(
String executable, List< String> arguments) → ProcessResult -
Run a single
executablewitharguments, resolving theexecutableif needed.inherited -
runSync(
String script) → List< ProcessResult> -
Run one or multiple plain text command(s).
inherited
-
shellVarOverride(
String name, String? value, {bool? local}) → Future< Shell> -
override in local (default) or user settings, null means delete,
localdefaults to true.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited