LocalCommand constructor

LocalCommand(
  1. DangerUtil dangerUtil
)

Implementation

LocalCommand(this.dangerUtil) {
  argParser.addOption('dangerfile',
      defaultsTo: 'dangerfile.dart', help: 'Location of dangerfile');

  argParser.addOption('danger-js-path', help: 'Path to dangerJS');
  argParser.addOption('base',
      help: 'Use a different base branch', valueHelp: 'branch_name');
  argParser.addFlag('failOnErrors',
      defaultsTo: false,
      negatable: false,
      help: 'Fail if there are fails in the danger report');
  argParser.addFlag('staging',
      defaultsTo: false, negatable: false, help: 'Just use staged changes.');
  argParser.addFlag('debug', defaultsTo: false, negatable: false);
  argParser.addFlag('verbose', defaultsTo: false, negatable: false);
}