runCommand method

Future<bool> runCommand([
  1. int? port
])

Implementation

Future<bool> runCommand([int? port]) async {
  final resolvedPort = port ?? _portFromEnv() ?? 8000;
  if (Platform.isWindows) return _killOnWindows(resolvedPort);
  if (Platform.isLinux || Platform.isMacOS) {
    return _killOnUnix(resolvedPort);
  }
  Console.error('This platform is not supported.');
  return false;
}