run method

Future<void> run()

Run the full interactive wizard

Implementation

Future<void> run() async {
  _printWelcome();

  // Top-level action menu: pick whether to start fresh, rebuild an
  // existing project, or quit. Lets users invoke the rebuild flow
  // without remembering the `oracular rebuild` command.
  final _StartAction action = await _chooseStartAction();
  switch (action) {
    case _StartAction.start:
      await _runFreshSetup();
      return;
    case _StartAction.rebuild:
      await _runRebuildFlow();
      return;
    case _StartAction.quit:
      info('Goodbye.');
      return;
  }
}