detect method

Future<List<String>> detect(
  1. List<String> files
)

Detects the dependencies of a list of files.

Implementation

Future<List<String>> detect(List<String> files) async {
  log('Inspecting ${files.length} file(s): be patient');
  for (var file in files) {
    await getDependencies(file);
  }
  return await findPackages();
}