type property

String type

return parameter type

example run sunac create gx sunac create app gx sunac create module gx

print(type); // app
print(type); // app
print(type); // module

Implementation

String get type {
  var args = List.of(_args);
  _removeDefaultArgs(args);
  if (args.length > 1) {
    if (args[0] == 'create') {
      var type = args[1];
      if (type == 'app' || type == 'module') {
        return type;
      }
    }
  }
  return 'app';
}