execute method

  1. @override
Future<void> execute()
override

execute command

Implementation

@override
Future<void> execute() async {
  final menu = Menu([
    'GetX Pattern (by KauĂȘ)',
    'CLEAN (by Arktekko)',
  ], title: 'Which architecture do you want to use?');
  final result = menu.choose();

  result.index == 0
      ? await createInitGetxPattern()
      : await createInitKatekko();
  if (!PubspecUtils.isServerProject) {
    await ShellUtils.pubGet();
  }
  return;
}