Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] Use needle command via SwiftPM #364

Open
horita-yuya opened this issue Oct 22, 2020 · 0 comments
Open

[Suggestion] Use needle command via SwiftPM #364

horita-yuya opened this issue Oct 22, 2020 · 0 comments

Comments

@horita-yuya
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant