BuildToolPlugin
Defines functionality for all plugins having a buildTool
capability.
protocol BuildToolPlugin : Plugin
Supertypes
protocol Plugin
Defines functionality common to all SwiftPM plugins, such as the way to instantiate the plugin.
Requirements
Instance members
func createBuildCommands(context: PluginContext, target: Target
) async throws -> [Command] Invoked by SwiftPM to create build commands for a particular target. The context parameter contains information about the package and its dependencies, as well as other environmental inputs.