Swiftpack.co - Package - vknabel/ArrowKit

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.0"),

Contributors

  • Valentin Knabel, @vknabel, dev@vknabel.com

License

Archery is available under the MIT license.

Github

link
Stars: 0
Help us keep the lights on

Dependencies

Used By

Total:

Releases

0.1.0 - Jan 24, 2018

0.2.0 - Jan 24, 2018

  • Better log messages
  • [Breaking] Renamed some errors
  • [Breaking] Removed unused errors