ProjectCommand class final

A declared command: exact argv, explicit working directory, explicit environment.

The executable is resolved by the process spawn itself, the way every program resolves a program; the arguments are handed over as they are declared, so an argument that contains spaces stays one argument.

Constructors

ProjectCommand({required String executable, List<String> arguments = const <String>[], ProjectDirectory workingDirectory = const ProjectDirectory.project(), Map<String, String> environment = const <String, String>{}, Duration timeout = const Duration(minutes: 10)})
Declares a command.
const

Properties

arguments → List<String>
The exact arguments, in order.
final
argv → List<String>
The exact argv of this command, executable first.
no setter
environment → Map<String, String>
Environment overrides applied on top of the inherited environment.
final
executable → String
The program to run, e.g. npm or dart.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timeout → Duration
The deadline of a bounded run of this command.
final
workingDirectory → ProjectDirectory
Where the command runs.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
The evidence projection of this command.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited