runLaunchCli function

Future<int> runLaunchCli(
  1. List<String> args
)

CLI adapter for fdb launch.

Flags: --device (required) target device/simulator ID --project Flutter project root (default: CWD) --flavor Build flavor --target Entry-point file (default: lib/main.dart) --flutter-sdk Path to Flutter SDK root --verbose Pass --verbose to flutter run

Implementation

Future<int> runLaunchCli(List<String> args) => runCliAdapter(
      ArgParser()
        ..addOption('device', help: '(required) target device/simulator ID')
        ..addOption('project', help: 'Flutter project root (default: CWD)')
        ..addOption('flavor', help: 'Build flavor')
        ..addOption(
          'target',
          help: 'Entry-point file (default: lib/main.dart)',
        )
        ..addOption('flutter-sdk', help: 'Path to Flutter SDK root')
        ..addFlag('verbose', negatable: false, help: 'Pass --verbose to flutter run'),
      args,
      _execute,
    );