ReviewListCommand constructor

ReviewListCommand(
  1. ReviewExecutionContext _context, {
  2. List<String>? allowedSites,
})

Implementation

ReviewListCommand(this._context, {List<String>? allowedSites}) {
  _addSiteOption(argParser, allowedSites: allowedSites);
  argParser
    ..addOption(
      _statusOption,
      allowed: const ['open', 'resolved', 'all'],
      defaultsTo: 'all',
      help: 'Filter comments by status.',
    )
    ..addFlag(
      _jsonFlag,
      defaultsTo: false,
      negatable: false,
      help: 'Print comments as JSON.',
    );
}