CreateCommand constructor

CreateCommand()

Implementation

CreateCommand() {
  argParser
    ..addFlag(
      'package',
      abbr: 'p',
      negatable: false,
      help: 'Create a Flutter package instead of an app (only for Flutter).',
    )
    ..addOption(
      'org',
      help: 'Set the organization (e.g., com.example) (only for Flutter)',
    )
    ..addOption(
      'type',
      abbr: 't',
      allowed: ['flutter', 'react-native', 'ruby', 'npm'],
      defaultsTo: 'flutter',
      help:
          'Specify the type of project to create: flutter, react-native (uses Expo, includes web), ruby, npm.',
    )
    ..addFlag(
      'cd',
      defaultsTo: true,
      help: 'Print command to switch to the new directory after creation.',
    );
}