runInit function

void runInit({
  1. String? architectureType,
})

Runs the init command, scaffolding the Clean Architecture core layer inside the current working directory.

Implementation

void runInit({String? architectureType}) {
  final selectedArchitecture = _resolveArchitecture(architectureType);

  if (selectedArchitecture == _ArchitectureType.normal) {
    generateStandardArchitecture();
    return;
  }

  generateArchitecture();
}