scanning method
Implementation
Future<void> scanning(String path, String cmd) async {
final Directory dir = Directory(path);
if (dir.existsSync()) {
for (FileSystemEntity entity in dir.listSync()) {
var path = entity.path;
if (isYaml(path)) {
///执行,pub get or update
final String packageName = getModuleName(dir.path);
modules.add(packageName);
} else {
///目录
if (!path.contains('.')) {
await scanning(path, cmd);
}
}
}
}
}