tagExists method

Future<bool> tagExists(
  1. String tag
)

Check a tag exists.

Implementation

Future<bool> tagExists(String tag) async {
  final processResult = await executeCommand(
    arguments: ['tag', '-l', tag],
  );
  return (processResult.stdout as String).contains(tag);
}