execute method

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

execute command

Implementation

@override
Future<void> execute() async {
  var isProject = false;
  if (GetCli.arguments[0] == 'create' || GetCli.arguments[0] == '-c') {
    isProject = GetCli.arguments[1].split(':').first == 'project';
  }
  var name = this.name;
  if (name.isEmpty || isProject) {
    name = 'home';
  }
  checkForAlreadyExists(name);
}