PackageRunCiOptions constructor

PackageRunCiOptions({
  1. bool formatOnly = false,
  2. bool testOnly = false,
  3. bool buildOnly = false,
  4. bool analyzeOnly = false,
  5. bool pubGetOnly = false,
  6. bool verbose = false,
  7. bool recursive = false,
  8. bool pubUpgradeOnly = false,
  9. bool pubDowngradeOnly = false,
  10. bool fixOnly = false,
  11. bool noNodeTest = false,
  12. bool noVmTest = false,
  13. bool vmTestOnly = false,
  14. bool noBrowserTest = false,
  15. bool chromeJsTestOnly = false,
  16. bool noTest = false,
  17. bool noAnalyze = false,
  18. bool noFormat = false,
  19. bool noPubGet = false,
  20. bool noBuild = false,
  21. bool offline = false,
  22. bool noNpmInstall = false,
  23. int? poolSize,
  24. bool noOverride = false,
  25. bool dryRun = false,
  26. bool prjInfo = false,
  27. bool noRunCi = false,
  28. bool ignoreErrors = false,
  29. FilterDartProjectOptions? filterDartProjectOptions,
  30. bool printPath = false,
})

Package run ci options.

Implementation

PackageRunCiOptions({
  this.formatOnly = false,
  this.testOnly = false,
  this.buildOnly = false,
  this.analyzeOnly = false,
  this.pubGetOnly = false,
  this.verbose = false,
  this.recursive = false,
  this.pubUpgradeOnly = false,
  this.pubDowngradeOnly = false,
  this.fixOnly = false,
  this.noNodeTest = false,
  this.noVmTest = false,
  this.vmTestOnly = false,
  this.noBrowserTest = false,
  this.chromeJsTestOnly = false,
  this.noTest = false,
  this.noAnalyze = false,
  this.noFormat = false,
  this.noPubGet = false,
  this.noBuild = false,
  this.offline = false,
  this.noNpmInstall = false,
  this.poolSize,
  this.noOverride = false,
  this.dryRun = false,
  this.prjInfo = false,
  this.noRunCi = false,
  this.ignoreErrors = false,
  this.filterDartProjectOptions,
  this.printPath = false,
}) {
  var isTestOnlyAction = testOnly || vmTestOnly || chromeJsTestOnly;
  var isOnlyAction =
      (formatOnly ||
          buildOnly ||
          isTestOnlyAction ||
          analyzeOnly ||
          pubGetOnly ||
          pubUpgradeOnly ||
          fixOnly);
  if (isOnlyAction) {
    noTest = !isTestOnlyAction;

    noBuild = !buildOnly;
    noAnalyze = !analyzeOnly;
    noFormat = !formatOnly;
  }
}