Closed ethan-kusters closed 2 years ago
@swift-ci test
@swift-ci please test
@swift-ci please test
@swift-ci please test
@swift-ci please test
@swift-ci please test
@swift-ci please test
@swift-ci please test
@swift-ci please test
@swift-ci please test
@swift-ci please test
@swift-ci please test
@swift-ci please test
@swift-ci please test
@swift-ci please test
@swift-ci please test
Summary
Updates the SwiftPM plugin to use the latest Argument Parsing API that will ship with Swift 5.6.
This also includes some general improvements to help output (
--help
) in preparation for the 1.0 release of the plugin.Details
The SwiftPM plugin API has been updated so that options like
--target
and--product
are passed directly to the plugin instead of to the package manager.This means that instead of calling the plugin with something like:
you would now do:
This allows us to be a little smarter about choosing which products to build. For example, now when a user invokes the basic
we will also generate documentation for dependencies. Similarly, this allows clients to specify products of dependencies which makes doing something like
possible for packages that import ArgumentParser.
Dependencies
This change depends on the latest Swift 5.6 nightly toolchain that includes the new ArgumentParsing API.
Testing
Add the version of the plugin on this branch as a dependency of a package with:
Checklist
Make sure you check off the following items. If they cannot be completed, provide a reason.
./bin/test
script and it succeeded