Skip to content

Commit a1fde8f

Browse files
committed
Mark the PackageDescription manifest API as being available only with tools version 999.0 since this hasn't been approved yet.
1 parent 0dd702e commit a1fde8f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/PackageDescription/Target.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ public final class Target {
131131
/// this enum will be extended as new plugin capabilities are added.
132132
public enum PluginCapability {
133133
case _buildTool
134+
@available(_PackageDescription, introduced: 999.0)
134135
case _command(intent: PluginCommandIntent, permissions: [PluginPermission])
135136
}
136137

@@ -1015,7 +1016,7 @@ extension Target.PluginCapability {
10151016
/// Specifies that the plugin provides a user command capability. It will
10161017
/// be available to invoke manually on one or more targets in a package.
10171018
/// The package can specify the verb that is used to invoke the command.
1018-
@available(_PackageDescription, introduced: 5.6)
1019+
@available(_PackageDescription, introduced: 999.0)
10191020
/// Plugins that specify a `command` capability define commands that can be run
10201021
/// using the SwiftPM CLI (`swift package <verb>`), or in an IDE that supports
10211022
/// Swift Packages.
@@ -1033,6 +1034,7 @@ extension Target.PluginCapability {
10331034
}
10341035
}
10351036

1037+
@available(_PackageDescription, introduced: 999.0)
10361038
public enum PluginCommandIntent {
10371039
/// The intent of the command is to generate documentation, either by parsing the
10381040
/// package contents directly or by using the build system support for generating
@@ -1050,6 +1052,7 @@ public enum PluginCommandIntent {
10501052
case custom(verb: String, description: String)
10511053
}
10521054

1055+
@available(_PackageDescription, introduced: 999.0)
10531056
public enum PluginPermission {
10541057
/// The custom command plugin requests permission to modify the files inside the
10551058
/// package directory. The `reason` string is shown to the user at the time of

0 commit comments

Comments
 (0)