GeneratePageCommand constructor

GeneratePageCommand()

Implementation

GeneratePageCommand() {
  argParser.addOption(
    'type',
    abbr: 't',
    allowed: ['async', 'sync', 'static'],
    defaultsTo: 'async',
    help: 'The architectural archetype of the page.',
    allowedHelp: {
      'async':
          'INDUSTRIAL: AppViewBuilder + Notifier + Data Class + Status Enum. Use for features requiring initial I/O or complex state transitions. Preserves data across refreshes.',
      'sync': 'LIGHTWEIGHT: AppViewBuilder + Notifier + Data Class. Use for local synchronous logic (e.g., settings, simple calculators). No loading/error status overhead.',
      'static': 'ZERO-LOGIC: StatelessWidget only. Use for immutable informational content (ToS, About). Forbidden from accessing business logic providers.',
    },
  );
}