[Suggestion] Use needle command via SwiftPM
horita-yuya opened this issue · 0 comments
horita-yuya commented
How about distribute generator exectable via Swift Package Manager? like this
In my project, we don't use Carthage only SwiftPM at this moment. So, we want to use needle via SwiftPM.
Homebrew?
This is a good option, but I have two projects which use needle with different version. I want to manage the version locally.
Example
In my project, cli/Package.swift
exists.
// swift-tools-version:5.1
import PackageDescription
let package = Package(
name: "CommandLines",
dependencies: [
.package(url: "https://github.com/yonaskolb/XcodeGen", from: "2.17.0"),
.package(url: "https://github.com/horita-yuya/needle", .branch("master"))
]
)
Using the following command, I use needle via SwiftPM.
$ swift run --package-path cli -c release needle version
0.16.0
How about support this officially?
Thankyou.