CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

Chores 0.0.3

Chores 0.0.3

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Nov 2015
SPMSupports SPM

Maintained by Boris Bügling.



Chores 0.0.3

A library for simplifying task execution in Swift.

Usage

Use the > custom operator to execute commands:

let result = >"true"
print(result.result) // 0
print(result.stdout) // ""

You can also create pipes using '|' custom operator:

let result = >"ls"|["grep", ".md$"]
print(result.stdout) // "README.md"

And pipe commands into a closure:

let result = >["ls", "README.md"]|{ String(count($0)) }
print(result.stdout) // "9"

Unit Tests

The tests require xctester, install it via Homebrew:

$ brew tap neonichu/formulae
$ brew install xctester

and run the tests:

$ make test