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"),
- Valentin Knabel, @vknabel, dev@vknabel.com
Archery is available under the MIT license.