PluginCommandIntent
The intended use case of the command plug-in.
Target.swift:1419PluginCommandIntent.md- SwiftPM
- 5.6+
enum PluginCommandIntent
Creating a Command Intent
documentationGeneration
sourceCodeFormatting
case custom(verb: String, description: String)
A custom command plug-in intent.
Cases
case documentationGeneration
The plug-in generates documentation.
case sourceCodeFormatting
The plug-in formats source code.
See also
static func plugin(name: String, capability: Target.PluginCapability, dependencies: [Target.Dependency], path: String?, exclude: [String], sources: [String]?
) -> Target Defines a new package plugin target.
var pluginCapability: Target.PluginCapability?
The capability provided by a package plug-in target.
enum PluginCapability
The different types of capability that a plug-in can provide.
enum PluginPermission
The type of permission a plug-in requires.
Citizens in PackageDescription
Type members
static func documentationGeneration(
) -> PluginCommandIntent The plugin generates documentation.
static func sourceCodeFormatting(
) -> PluginCommandIntent The plug-in formats source code.