run function

void run(
  1. List<String> args
)

Implementation

void run(List<String> args) {
  if (args.length < 2 || args[0] != 'create') {
    print('❌ Usage: architecture create <app|feature> [name]');
    exit(1);
  }

  final type = args[1];

  if (type == 'app') {
    _createAppStructure();
  } else if (type == 'feature') {
    if (args.length < 3) {
      print('❌ Usage: architecture create feature <name>');
      exit(1);
    }
    final name = args[2];
    _createFeatureStructure(name);
  } else {
    print('❌ Unknown type: $type');
    exit(1);
  }
}