Swiftpack.co - Package - kiliankoe/Alfred

Alfred

Build awesome Alfred workflows with Swift! Previously known as Benchr267/swiftalfred, this project now lives on as Alfred here.

Example

import Alfred

struct Repo: ItemRepresentable {
    var name = "a name!"
    var version = "12.3"
    var link1 = "https://www.example.com"
    var link2 = "https://www.example.com/doc"
    var summary = "This is soooo cool!"

    var item: Item {
        var item = Item(title: "\(name) (\(version))", subtitle: summary, arg: .simple(link1))
        item.alt = ModifierAction(arg: .simple(link2), subtitle: "Open documentation!")
        return item
    }
}
let repos = (0..<100).map { _ in Repo() }
let res = Response(items: repos)

let output = try res.output()
print(output)

Installation

Add the following package to your Package.swift's list of dependencies:

.package(url: "https://github.com/kiliankoe/alfred.git", from: "<#latest#>")

License

This project is under MIT license, see LICENSE for more information.

Github

link
Stars: 14

Dependencies

Used By

Total: 0

Releases

ComplexArguments are also used for Modifiers - 2016-09-14 17:14:29

Modifiers also contain arguments and they can now also be complex! 🎉

Added ComplexArgument - 2016-09-14 16:59:47

With this release, you are able to create Arguments that are even more complex! Arguments can now contain variables that can be read in Alfred actions with {var:time} (if time is the name of that variable). This brings a lot more power to your workflows! 👍

First release 🎉 - 2016-09-14 16:58:34

This is the first release of swiftalfred. Use this framework to create awesome workflows for Alfred!