diff --git a/Package.swift b/Package.swift index bc3e7f9..d9dd94e 100644 --- a/Package.swift +++ b/Package.swift @@ -12,7 +12,7 @@ let package = Package( products: [ .library(name: "Knit", targets: ["Knit"]), .plugin(name: "KnitBuildPlugin", targets: ["KnitBuildPlugin"]), - .executable(name: "knit-cli", targets: ["KnitCommand"]), + .executable(name: "knit-cli", targets: ["knit-cli"]), ], dependencies: [ .package(url: "https://github.com/Swinject/Swinject.git", from: "2.9.1"), @@ -39,13 +39,13 @@ let package = Package( name: "KnitBuildPlugin", capability: .buildTool, dependencies: [ - .target(name: "KnitCommand"), + .target(name: "knit-cli"), ] ), // MARK: - CLI .executableTarget( - name: "KnitCommand", + name: "knit-cli", dependencies: [ .product(name: "SwiftSyntax", package: "swift-syntax"), .product(name: "ArgumentParser", package: "swift-argument-parser"), diff --git a/Plugins/KnitBuildPlugin/KnitBuildPlugin.swift b/Plugins/KnitBuildPlugin/KnitBuildPlugin.swift index 74a3d47..f48d421 100644 --- a/Plugins/KnitBuildPlugin/KnitBuildPlugin.swift +++ b/Plugins/KnitBuildPlugin/KnitBuildPlugin.swift @@ -102,7 +102,7 @@ extension XcodePluginContext { return .buildCommand( displayName: "Knit Plugin: Generate Knit files based on config \(configFilePath.description)", - executable: try self.tool(named: "KnitCommand").path, + executable: try self.tool(named: "knit-cli").path, arguments: arguments, inputFiles: assemblyInputPaths, outputFiles: [typeSafetyOutputPath, unitTestOutputPath].compactMap { $0 } diff --git a/Sources/KnitCommand/GenCommand.swift b/Sources/knit-cli/GenCommand.swift similarity index 100% rename from Sources/KnitCommand/GenCommand.swift rename to Sources/knit-cli/GenCommand.swift diff --git a/Sources/KnitCommand/KnitCommand.swift b/Sources/knit-cli/KnitCommand.swift similarity index 100% rename from Sources/KnitCommand/KnitCommand.swift rename to Sources/knit-cli/KnitCommand.swift