writeGenShelf function

Future<void> writeGenShelf(
  1. RawShelf rawShelf
)

write gen files

Implementation

Future<void> writeGenShelf(RawShelf rawShelf) async {
  // Folder
  writeFolder(rawShelf.folderPath);

  // File
  writeStringFile(
    rawShelf.filePath,
    rawShelf.fileContent,
  );

  // Books
  for (final rawBook in rawShelf.books) {
    await writeGenBook(rawBook);
  }
}