RunShell class final
Executes an arbitrary shell command after all file mutations have been committed.
args is a positional list (no shell quoting or globbing is applied by
the executor). workingDir defaults to the project root when null.
Example
RunShell(command: 'dart', args: ['format', '.'])
RunShell(command: 'flutter', args: ['pub', 'get'], workingDir: 'packages/plugin')
- Inheritance
-
- Object
- InstallOperation
- RunShell
Constructors
Properties
-
args
→ List<
String> -
Positional arguments passed to the executable.
final
- command → String
-
The executable to run (without arguments).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- workingDir → String?
-
Optional working directory. When
null, defaults to the project root.final
Methods
-
describe(
) → String -
Returns a human-readable dry-run line for this operation.
override
-
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