From 91409aec028112a8be9f75963f93a434c6dd83d2 Mon Sep 17 00:00:00 2001 From: Lawrence Forooghian Date: Fri, 2 Aug 2024 16:50:16 +0100 Subject: [PATCH] what about simplified --- Package.swift | 2 +- Sources/BuildTool/BuildTool.swift | 14 +------------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/Package.swift b/Package.swift index 2aabb43a..c779f80a 100644 --- a/Package.swift +++ b/Package.swift @@ -33,6 +33,6 @@ let package = Package( name: "AblyChatTests", dependencies: ["AblyChat"] ), - .executableTarget(name: "BuildTool", dependencies: [.product(name: "ArgumentParser", package: "swift-argument-parser")], swiftSettings: [.enableExperimentalFeature("StrictConcurrency")]), + .executableTarget(name: "BuildTool", dependencies: [], swiftSettings: [.enableExperimentalFeature("StrictConcurrency")]), ] ) diff --git a/Sources/BuildTool/BuildTool.swift b/Sources/BuildTool/BuildTool.swift index c48821a8..214b5946 100644 --- a/Sources/BuildTool/BuildTool.swift +++ b/Sources/BuildTool/BuildTool.swift @@ -1,15 +1,3 @@ -import ArgumentParser import Foundation -// TODO: Is there a better way to make sure that this script has access to macOS APIs that are more recent than the package’s deployment target? -/*@available(macOS 14, *)*/ -@main -struct BuildTool: ParsableCommand { - @Option var platform: String - - @Option var swiftVersion: Int - - mutating func run() throws { - print("Here is run") - } -} +print("Here it is")