dart_service_manager_cli library
The dart-service command-line interface, exposed as a library so it can be
embedded and unit-tested.
buildServiceRunner assembles the CommandRunner; runCli is the entry
point used by bin/dart_service.dart.
Functions
-
buildServiceRunner(
{ManagerFactory? managerFactory, StringSink? out}) → CommandRunner< int> -
Assembles the
dart-serviceCommandRunner. -
runCli(
List< String> args, {ManagerFactory? managerFactory, StringSink? out, StringSink? errOut}) → Future<int> -
Runs the
dart-serviceCLI withargsand returns a process exit code. -
scopeFromGlobals(
ArgResults? globals) → ServiceScope - Reads the requested ServiceScope from the global options.
Typedefs
- ManagerFactory = DartServiceManager Function({required bool verbose})
-
Builds a
DartServiceManagerfor a CLI invocation, honouring--verbose.