import 'dart:io'; import 'src/local_environment.dart'; Future main(List arguments) async { try { exitCode = await runLocalFlutter( arguments, root: Directory.fromUri(Platform.script.resolve('../')), inherited: Platform.environment, ); } on FormatException catch (error) { stderr.writeln(error.message); exitCode = 2; } on FileSystemException { stderr.writeln('Cannot read .env.local; check the file permissions.'); exitCode = 1; } on StateError catch (error) { stderr.writeln(error.message); exitCode = 1; } on ProcessException { stderr.writeln('Cannot start the project Flutter SDK. Run fvm use first.'); exitCode = 1; } }