diff --git a/Package.swift b/Package.swift index 0a52896..fb30075 100644 --- a/Package.swift +++ b/Package.swift @@ -16,7 +16,7 @@ let package = Package( .package(name: "swift-nio-ip", url: "https://github.com/PSchmiedmayer/Swift-NIO-IP.git", from: "0.0.1") ], targets: [ - .target( + .executableTarget( name: "lifx", dependencies: [ .product(name: "ArgumentParser", package: "swift-argument-parser"), diff --git a/Sources/lifx/main.swift b/Sources/lifx/LIFX.swift similarity index 99% rename from Sources/lifx/main.swift rename to Sources/lifx/LIFX.swift index 9df486a..fa5690c 100644 --- a/Sources/lifx/main.swift +++ b/Sources/lifx/LIFX.swift @@ -4,7 +4,7 @@ import Logging import NIO import NIOLIFX - +@main struct LIFX: ParsableCommand { enum InitialAction: String, Codable, ExpressibleByArgument { case on @@ -110,5 +110,3 @@ struct LIFX: ParsableCommand { LIFX.exit() } } - -LIFX.main()