TestsTested | ✓ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jan 2016 |
SPMSupports SPM | ✓ |
Maintained by Gruppio.
Forrest Features:
import Forrest
let forrest = Forrest()
// Get Current Directory
let pwd = forrest.run("pwd").stdout
// Piped Commands
let swiftFiles = forrest.run("ls -la | grep swift").stdout
The First example is a program that it will list the Swift files in your launch directory. For run this program:
git clone https://github.com/Gruppio/Run-Forrest-Run.git
cd Run-Forrest-Run/Examples/ListSwiftFiles
swift build
.build/debug/ListSwiftFiles
You can install Commander with SPM (Swift Package Manager)
Forrest is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "Forrest"
Forrest is available under the MIT license. See the LICENSE file for more info.