services/service_plan library
Classes
- ServicePlan
- One service, with everything the runner needs to start it.
Functions
-
collapseRedraws(
String line) → String -
linewith 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
framewould 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
chunkwithlabel.
Exceptions / Errors
- UnknownServiceException
-
Thrown when
--onlynames something that is not there.