NEW: Subscribe to Hacking with Swift+ and accelerate your learning! >>

Could Brisk be a library package too?

Forums > Swift

Swift Packages vs Brisk

I am a Junior and I have spent the last two days reading the package documentation at swift.org and playing around with creating library packages and executable packages.

Now I got the idea, when I create an executable script with swift:

swift package init --type executable

would it not be nice, to be able to add in the Package.swift manifest the dependency to Brisk and write my script?

I know Brisk is doing that under the hood. When launched with,

brisk myscriptname

Brisk is creating an executable package for me to start writing my script and run or compile it. But would a library be nice too? Would that be a nice side project? Do we need a new repo for that?

On the other side, using Brisk instead of creating an axecutable package has the nice effect that oll my scripts are quasi bundled together in the Brisk directory..

I am just collecting feedback wanting to contribute to the Brisk project. Thanks 🙌

   

Hacking with Swift is sponsored by Paw

SPONSORED Use Paw to build, test and describe web APIs. Paw has a lightning fast native macOS interface to compose requests, collaborate in real-time on API specs, and generate client code for your applications. You can import and export API definitions.

Discover Paw for Mac

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

 
Unknown user

Not logged in

Log in
 

Link copied to your pasteboard.