runInitCommand function

void runInitCommand()

Implementation

void runInitCommand() {
  final baseDir = Directory('lib/src');
  final folders = [
    'core/error',
    'core/utils',
    'core/theme',
    'core/routes',
    'shared/usecases',
    'shared/widgets',
    'shared/helpers',
    'features',
  ];

  for (final folder in folders) {
    createFolder(baseDir.path, folder);
  }

  print('\n✅ The project initialization structure has been successfully created.');
}