Skip to content

Commit

Permalink
Merge pull request #217 from cashapp/skorulis/knit-cli-name
Browse files Browse the repository at this point in the history
Rename the KnitCommand target to knit-cli
  • Loading branch information
skorulis-ap authored Dec 2, 2024
2 parents 66d9194 + 6c7a04c commit ea39ba3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand All @@ -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"),
Expand Down
2 changes: 1 addition & 1 deletion Plugins/KnitBuildPlugin/KnitBuildPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit ea39ba3

Please sign in to comment.