repo static method

String repo(
  1. ArgResults argResults,
  2. Never usageException(
    1. String message
    )
)

Implementation

static String repo(
  ArgResults argResults,
  Never Function(String message) usageException,
) {
  final repo = argResults.requireParam(_name);
  if (!RegExp('^.+/.+').hasMatch(repo)) {
    usageException('repo is not GitHub Repository: $repo');
  }
  return repo;
}