CliRunner constructor

CliRunner({
  1. Iterable<Command<void>> commands = const <Command<void>>[],
})

Implementation

CliRunner({
  Iterable<Command<void>> commands = const <Command<void>>[],
}) : super('linting', 'Analyze your code') {
  if (commands.isEmpty) {
    throw Exception("commands is empty!");
  }
  commands.forEach(addCommand);
}