CommandPlugin
Defines functionality for all plugins that have a command capability.
protocol CommandPlugin : PluginBrowse conforming typesDefines functionality for all plugins that have a command capability.
protocol CommandPlugin : Pluginimport PackagePluginprotocol PluginDefines functionality common to all SwiftPM plugins, such as the way to instantiate the plugin.
var packageManager: PackageManager { get }A proxy to the Swift Package Manager or IDE hosting the command plugin, through which the plugin can ask for specialized information or actions.
func performCommand(context: PluginContext, arguments: [String]) async throws Invoked by SwiftPM to perform the custom actions of the command.
var packageManager: PackageManager { get }A proxy to the Swift Package Manager or IDE hosting the command plugin, through which the plugin can ask for specialized information or actions.