Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 800 Bytes

README.md

File metadata and controls

36 lines (27 loc) · 800 Bytes

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.