Forrest Features:
- Execute any Shell Command in your Swift Scripts
- Super Easy to use
- Pipe commands easly
- < 1000 lines of code
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"
- Developed by Michele Gruppioni
- Inspired by Swiftline
Forrest is available under the MIT license. See the LICENSE file for more info.