act method

  1. @override
Future<void> act(
  1. DartServiceManager manager,
  2. String role
)

Performs the action against the platform service manager.

Implementation

@override
Future<void> act(svc.DartServiceManager manager, String role) async {
  final svc.ServiceInfo info;
  try {
    info = await manager.describe(servicePackage, role);
  } on svc.ServiceNotFoundException {
    stdout.writeln('$role: not installed');
    return;
  }
  stdout.write(_formatServiceInfo(role, info));
}