prepare method

Future<Map<ReleasePackerCommand, ReleasePackerCommandStatus>> prepare(
  1. Directory rootDirectory, {
  2. String? platform,
})

Runs the prepareCommands.

Throws a ReleasePackerError if a command fails.

Implementation

Future<Map<ReleasePackerCommand, ReleasePackerCommandStatus>> prepare(
  Directory rootDirectory, {
  String? platform,
}) {
  var prepareCommands = this.prepareCommands;
  if (prepareCommands != null && prepareCommands.isNotEmpty) {
    print('\n»  Running prepare commands (${prepareCommands.length})...');
  }

  return ReleasePackerCommand.executeCommands(
    this,
    prepareCommands,
    rootDirectory,
    platform: platform,
    context: 'prepare',
  );
}