GitXplorerGitXplorer
n

Chores

public
74 stars
6 forks
2 issues

Commits

List of commits on branch master.
Unverified
1e61afac810c1fdcde9e98a863d88ed71a48f9ac

Support Swift Package Manager

nneonichu committed 9 years ago
Unverified
9acf4b0fabf02ad53bb3538b142365822a3c7691

Bump version number

nneonichu committed 9 years ago
Unverified
fca3f69d97f82fdd81c38fe9ab2af19e0c9de3a2

Merge pull request #6 from neonichu/swift-2.0

nneonichu committed 9 years ago
Unverified
f865de9d768b201090adf92d19cad9190aedd8da

Update for Swift 2.1

nneonichu committed 9 years ago
Unverified
4773e9ba87d85855c7b803cfee15a8432eb99426

Support for Swift 2.0

nneonichu committed 9 years ago
Unverified
49ff2c87481b5d14aafac2144140152a25ec0dfb

Verify that launchPath is an executable file.

nneonichu committed 10 years ago

README

The README file for this repository.

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