Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.6] refactor CLI options #4291

Closed
wants to merge 1 commit into from

Conversation

tomerd
Copy link
Contributor

@tomerd tomerd commented Apr 12, 2022

motivation: fix an issue when not all options are presented as expected, and make the code clearer to reason about

changes:

  • rename SwiftToolOptions to GlobalOptions
  • refactor SwiftToolOptions (GlobalOptions) to multiple groups per domains: locations, caching, logging, build, linker, etc
  • set GlobalOptions "hiddenFromHelp" flag to false for swift-build, swift-test and swift-package
  • move enableCodeCoverage from GlobalOptions to TestToolOptions, since they apply there
  • refactor code that construct test build to pass in more fine grained options rather than take the entire global options model
  • adjust call sites and test

rdar://82658867

@tomerd tomerd added the 5.6 label Apr 12, 2022
@tomerd tomerd changed the title refactor CLI options (#4190) [5.6] refactor CLI options Apr 12, 2022
motivation: fix an issue when not all options are presented as expected, and make the code clearer to reason about

changes:
* rename SwiftToolOptions to GlobalOptions
* refactor SwiftToolOptions (GlobalOptions) to multiple groups per domains: locations, caching, logging, build, linker, etc
* set GlobalOptions "hiddenFromHelp" flag to false for swift-build, swift-test and swift-package
* move enableCodeCoverage from GlobalOptions to TestToolOptions, since they apply there
* refactor code that construct test build to pass in more fine grained options rather than take the entire global options model
* adjust call sites and test

rdar://82658867
@tomerd
Copy link
Contributor Author

tomerd commented Apr 12, 2022

@swift-ci smoke test

@tomerd tomerd self-assigned this Apr 13, 2022
@abertelrud abertelrud closed this Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants