runReviewCommentsCli function

Future<Never> runReviewCommentsCli(
  1. List<String> arguments
)

Runs the review_comments command-line interface and exits with the resulting status code.

Implementation

Future<Never> runReviewCommentsCli(List<String> arguments) async {
  final runner = ReviewCommentsCliRunner();
  try {
    final code = await runner.run(arguments) ?? 0;
    exit(code);
  } on UsageException catch (error) {
    stderr.writeln(error);
    exit(64);
  }
}