xtask library

xtask — a task runner whose tasks are data.

The README is the record of what this is and why it refuses what it refuses — three rules and a list of anti-goals, each there because it prevents a failure that has already happened somewhere. Read it before changing anything here.

Classes

ExitCode
What the process answers with.
VerbContext
Everything a verb is given (§9).

Functions

runXtask(List<String> args, {Map<String, Verb> verbs = const {}, String? workingDirectory}) Future<int>
Runs xtask with the verbs this project supplies, and answers with the process exit code — the README's exit code table says what each means.

Typedefs

Verb = Future<int> Function(VerbContext context)
A job the project implements in Dart, named by a task's do: key (§9).