markKept method

Future<void> markKept(
  1. String client
)

whitelabel --keep leaves its backups in place instead of restoring them, and records the client here. The next run (or clean) restores the project from them before doing anything else.

Implementation

Future<void> markKept(String client) async {
  await _keptMarker.parent.create(recursive: true);
  await _keptMarker.writeAsString(client);
}