services/service_plan library

Classes

ServicePlan
One service, with everything the runner needs to start it.

Functions

collapseRedraws(String line) String
line with everything an earlier redraw already painted over discarded.
colorFor(int index) → AnsiCode
A stable colour per service, so a given prefix keeps its colour for the life of the run.
isBlank(String frame) bool
Whether frame would draw nothing at all.
isUnfinished(String frame) bool
Whether this frame is a progress indicator that has not resolved yet.
lastFrame(String line) String
The final state of a line that redrew itself in place.
planServices(List<RevaliService> services, {int basePort = 8080, List<String> only = const []}) List<ServicePlan>
Decides what to run and on which ports.
prefixLines(String chunk, String label) List<String>
Prefixes every non-blank line of chunk with label.

Exceptions / Errors

UnknownServiceException
Thrown when --only names something that is not there.