A library for simplifying task execution in Swift.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Sources
Tests
.gitignore
.swift-version
.travis.yml
Chores.podspec
LICENSE
Makefile
Package.swift
README.md

README.md

Chores

No Maintenance Intended Version License Platform Build Status

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