readSrcData function

Future<SrcData> readSrcData(
  1. CometYaml cometYaml
)

read src data

Implementation

Future<SrcData> readSrcData(CometYaml cometYaml) async {
  final folders = await resolveSrcShelves(cometYaml);
  final List<SrcShelf> shelves = [];
  for (final shelfFolder in folders) {
    final shelf = await readSrcShelf(cometYaml, shelfFolder);
    shelves.add(shelf);
  }
  return SrcData(shelves: shelves);
}