aboutsummaryrefslogtreecommitdiff
path: root/Package.swift
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2025-11-02 19:27:32 +0000
committerGrégoire Duchêne <gduchene@awhk.org>2025-11-02 19:29:30 +0000
commitc7d428455c42e8039a6aedeb032b0685d7a47ebb (patch)
treef2b2b176fea7d019d578a873fc23af70f54f829a /Package.swift
parentaee698176a33879e7cb5b23e89157104c4b05c19 (diff)
First version of the CLI
It’s pretty basic, and it only works on macOS for now.
Diffstat (limited to 'Package.swift')
-rw-r--r--Package.swift27
1 files changed, 27 insertions, 0 deletions
diff --git a/Package.swift b/Package.swift
new file mode 100644
index 0000000..4a1ce2f
--- /dev/null
+++ b/Package.swift
@@ -0,0 +1,27 @@
+// swift-tools-version: 6.2
+
+import PackageDescription
+
+let package = Package(
+ name: "caffeinate-downloads",
+ platforms: [.macOS(.v13)],
+ dependencies: [
+ .package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.6.0"),
+ .package(url: "https://github.com/apple/swift-log.git", from: "1.6.0"),
+ .package(url: "https://github.com/apple/swift-nio.git", from: "2.88.0"),
+ .package(url: "https://github.com/apple/swift-system.git", from: "1.6.0"),
+ .package(url: "https://github.com/swift-server/swift-service-lifecycle.git", from: "2.9.0"),
+ ],
+ targets: [
+ .executableTarget(
+ name: "caffeinate-downloads",
+ dependencies: [
+ .product(name: "ArgumentParser", package: "swift-argument-parser"),
+ .product(name: "Logging", package: "swift-log"),
+ .product(name: "ServiceLifecycle", package: "swift-service-lifecycle"),
+ .product(name: "SystemPackage", package: "swift-system"),
+ .product(name: "_NIOFileSystem", package: "swift-nio"),
+ ]
+ )
+ ]
+)