execute method

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

Implementation

@override
Future<bool> execute() async {
  final optionSelected = getChoiceOption(
      "There is not an initialized git repository in this workspace, do you want to create it?");
  if (optionSelected == ChoiceOptions.yes) {
    return await createGit();
  } else {
    return false;
  }
}