cho

Chores

A library for simplifying task execution in Swift.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

73

Maintenance

Last Commit

4yrs ago

Contributors

3

Package

Dependencies

0

License

MIT

Categories

Readme

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100