Skip to content

Commit f313486

Browse files
authored
Command plugin Xcode extension name fixed (#7277)
Template resulting from `swift package init --type command-plugin` did not auto generate the extension name and used boilerplate instead. ### Motivation: Seems like a small oversight, not an intentional difference. ### Modifications: InitPackage.swift line 553 goes from `extension MyCommandPlugin: XcodeCommandPlugin {` to `extension \(typeName): XcodeCommandPlugin {` ### Result: Template generates correctly.
1 parent 34efc0b commit f313486

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Workspace/InitPackage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ public final class InitPackage {
550550
#if canImport(XcodeProjectPlugin)
551551
import XcodeProjectPlugin
552552
553-
extension MyCommandPlugin: XcodeCommandPlugin {
553+
extension \(typeName): XcodeCommandPlugin {
554554
// Entry point for command plugins applied to Xcode projects.
555555
func performCommand(context: XcodePluginContext, arguments: [String]) throws {
556556
print("Hello, World!")

0 commit comments

Comments
 (0)