HubStartCommand constructor
HubStartCommand({
- Future<
void> untilStopped()?,
Creates the hub-start command.
untilStopped is what "stop" means: Ctrl-C in production. A test passes a
future of its own so the whole configure/serve/close path runs to the end
without a signal — the alternative is a subprocess, whose coverage the VM
collector never sees.
Implementation
HubStartCommand({Future<void> Function()? untilStopped})
: _untilStopped = untilStopped ?? _awaitSignal {
addHubStartOptions(argParser);
}