ProjectOperationController class final

Runs the declared operations of one profile against one project.

Constructors

ProjectOperationController({required ProjectOperationProfile profile, required Directory workspace, Map<String, String> environment = const <String, String>{}, ProjectProcessRunner? runner})
Creates a controller.

Properties

activeCancellation → ProcessRunCancellation?
The cancellation of the run in flight, when one is running.
no setter
environment → Map<String, String>
Environment overrides applied to every run on top of the inherited environment and the command's own overrides.
final
hashCode → int
The hash code for this object.
no setterinherited
profile → ProjectOperationProfile
The declared commands.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
workspace → Directory
The owner project root.
final

Methods

cancelActiveRun() → bool
Requests the cancellation of the run in flight.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveDirectory(ProjectDirectory reference, Directory? candidate) → Directory
Resolves a declared working directory against this run's scope.
run(ProjectOperationKind kind, {Directory? candidate, Map<String, String> extraEnvironment = const <String, String>{}}) → Future<ProjectOperationOutcome>
Runs the declared operation of kind.
toString() → String
A string representation of this object.
inherited

Operators

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