deepSearch function

Future<void> deepSearch(
  1. DependNode root
)

Implementation

Future<void> deepSearch(DependNode root) async {
  if (root.children.isNotEmpty) {
    for (var child in root.children) {
      await deepSearch(child);
    }
  }
  print(
      '${DateTime.now()} start pub ${command == 'upgrade' ? command : 'get'} -------> ${root.path}');
  if (root.status == Status.affiliate) return;
  await pubGetOrUpgrade(root);
  root.status = Status.finished;
}