loadPlugins method

void loadPlugins(
  1. String projectPath
)

Scans projectPath for a migrator/plugins/ directory and prints a warning when found. Plugin loading is a placeholder for future work.

Implementation

void loadPlugins(String projectPath) {
  final pluginDir = Directory('$projectPath/migrator/plugins');
  if (!pluginDir.existsSync()) return;

  print(
    '\x1B[33m⚠️  [EXPERIMENTAL] Plugin directory detected at ${pluginDir.path}.\x1B[0m',
  );
  print(
    '   Plugin loading is not yet implemented. Dart has no runtime .dart file loading;',
  );
  print(
    '   plugins must be compiled into the tool. Skipping plugin discovery.',
  );
}