run method

  1. @override
FutureOr<void> run()
override

Runs this command.

The return value is wrapped in a Future if necessary and returned by CommandRunner.runCommand.

Implementation

@override
FutureOr<void> run() async {
  stdout.writeln("Running esdbtcli $name...");
  final server = EventStoreServerSingleNode(EventStoreImage.LTS);
  server.stop(name: argResults!['name'] as String);
  stdout.writeln(
    "EventStoreDB in docker container '${argResults!['name']}' is stopped",
  );
}