addTag function

Future<void> addTag(
  1. Directory testDir,
  2. String tag
)

Add tag to test directory

Implementation

Future<void> addTag(Directory testDir, String tag) async {
  final result = await Process.run('git', [
    'tag',
    tag,
  ], workingDirectory: testDir.path);

  _throw('Could not add tag $tag', result);
}