InitCommand constructor

InitCommand()

Implementation

InitCommand() {
  argParser
    ..addOption('org', defaultsTo: 'com.example')
    ..addOption(
      'name',
      abbr: 'n',
      help: 'Plugin name (skips interactive form; useful for scripts/CI).',
    )
    ..addOption(
      'dir',
      abbr: 'd',
      help: 'Target directory to create the plugin in. Defaults to the current directory.',
    )
    ..addOption(
      'platforms',
      abbr: 'p',
      defaultsTo: _defaultPlatforms,
      help:
          'Comma-separated list of platforms to scaffold. '
          'Valid: android, ios, macos, windows, linux. '
          'Example: --platforms=android,ios,macos,windows',
    )
    ..addFlag(
      'no-ui',
      negatable: false,
      help: 'Plain-text headless output (no ANSI). Auto-enabled when stdout is not a TTY. Requires --name.',
    );
}