A helper framework to write arrows for Archery in Swift.
import ArrowKit
struct YourArrow: Arrow {
let name: String
func fire(archerfile arrowFile: ArrowKit.Archerfile, arguments: [String]) throws {
print("Hello \(name)!")
if !arguments.isEmpty {
print("Your arguments are:")
for arg in arguments {
print(" \(arg)")
}
}
}
}
YourArrow.fire()
Using the Swift Package Manager
.package(url: "https://github.com/vknabel/ArrowKit.git", from: "0.2.3"),
Archery is available under the MIT license.
link |
Stars: 0 |
Last commit: 5 weeks ago |
Full Changelog: https://github.com/vknabel/ArrowKit/compare/0.2.3...0.2.4
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics