tool(named:)
Looks up and returns the path of a named command line executable.
Declaration
func tool(named name: String) throws -> PluginContext.ToolParameters
- name:
The name of the executable to find.
Discussion
The executable must be provided by an executable target or binary target on which the package plugin target depends. This function throws an error if the tool cannot be found. The lookup is case sensitive.