run method

Implementation

Future<ProjectRequirements> run() async {
  final answers = <String, dynamic>{};

  print('\n==================================================');
  print('          Ironship Project Discovery Engine');
  print('==================================================');

  for (final question in _questions) {
    answers[question.key] = question.ask();
  }

  return ProjectRequirements(
    stateManagement: answers['stateManagement'] as String,
    routing: answers['routing'] as String,
    projectScale: answers['projectScale'] as String,
    screenCount: answers['screenCount'] as String,
    authenticationRequired: answers['authenticationRequired'] as bool,
    sessionRequired: answers['sessionRequired'] as bool,
    environmentSetup: answers['environmentSetup'] as String,
  );
}