Remove library target
This commit is contained in:
parent
012203a4f3
commit
0bb53ea949
17 changed files with 8 additions and 16 deletions
|
@ -1,4 +1,4 @@
|
|||
// swift-tools-version:5.3
|
||||
// swift-tools-version:5.7
|
||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||
|
||||
import PackageDescription
|
||||
|
@ -10,17 +10,11 @@ let package = Package(
|
|||
],
|
||||
dependencies: [
|
||||
.package(url: "https://github.com/apple/swift-argument-parser", .upToNextMinor(from: "0.3.1")),
|
||||
.package(url: "https://github.com/robb/RBBJSON", .branch("main")),
|
||||
.package(url: "https://github.com/robb/RBBJSON", branch: "main"),
|
||||
],
|
||||
targets: [
|
||||
.target(
|
||||
.executableTarget(
|
||||
name: "MakeColors",
|
||||
dependencies: [
|
||||
"LibMakeColors",
|
||||
]
|
||||
),
|
||||
.target(
|
||||
name: "LibMakeColors",
|
||||
dependencies: [
|
||||
.product(name: "ArgumentParser", package: "swift-argument-parser"),
|
||||
]
|
||||
|
@ -28,7 +22,7 @@ let package = Package(
|
|||
.testTarget(
|
||||
name: "MakeColorsTests",
|
||||
dependencies: [
|
||||
"LibMakeColors",
|
||||
"MakeColors",
|
||||
.product(name: "RBBJSON", package: "RBBJSON"),
|
||||
]
|
||||
),
|
||||
|
|
|
@ -79,6 +79,7 @@ enum HelpTexts {
|
|||
)
|
||||
}
|
||||
|
||||
@main
|
||||
public final class MakeColors: ParsableCommand, Context {
|
||||
@Argument(help: HelpTexts.input)
|
||||
var input: String
|
|
@ -1,3 +0,0 @@
|
|||
import LibMakeColors
|
||||
|
||||
MakeColors.main()
|
|
@ -1,4 +1,4 @@
|
|||
@testable import LibMakeColors
|
||||
@testable import MakeColors
|
||||
import RBBJSON
|
||||
import XCTest
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@testable import LibMakeColors
|
||||
@testable import MakeColors
|
||||
import XCTest
|
||||
|
||||
final class ColorHSVTest: XCTestCase {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@testable import LibMakeColors
|
||||
@testable import MakeColors
|
||||
import XCTest
|
||||
|
||||
final class ColorParserTest: XCTestCase {
|
||||
|
|
Loading…
Add table
Reference in a new issue