Skip to content

vknabel/ArrowKit

Repository files navigation

ArrowKit

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()

Installation

Using the Swift Package Manager

.package(url: "https://github.com/vknabel/ArrowKit.git", from: "0.2.3"),

Contributors

License

Archery is available under the MIT license.