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-service CommandRunner.
runCli(List<String> args, {ManagerFactory? managerFactory, StringSink? out, StringSink? errOut}) Future<int>
Runs the dart-service CLI with args and 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 DartServiceManager for a CLI invocation, honouring --verbose.