runCommand method
Implementation
Future<void> runCommand([int? port]) async {
Env().load();
if (Platform.isWindows) {
await _killPortOnWindows(port ?? Env.get<int>('APP_PORT', 8000));
} else if (Platform.isLinux || Platform.isMacOS) {
await _killPortOnUnix(port ?? Env.get<int>('APP_PORT', 8000));
} else {
throw UnsupportedError('Unsupported platform');
}
}