run method

Future<void> run()

Implementation

Future<void> run() async {
  runner.argParser.addOption('id', help: '执行ID');
  runner.argParser.addOption('index', help: '执行的索引,默认为0');

  var arguments0 = [...args];
  requestArgument.clear();
  for (var arg in args) {
    final prefixs = ['--args=', '--env=', '--res='];
    if (prefixs.any((element) => arg.startsWith(element))) {
      requestArgument.add(arg);
      arguments0.remove(arg);
    }
  }
  return runner.run(arguments0);
}