Forrest 1.0.3

Forrest 1.0.3

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Jan 2016
SPMSupports SPM

Maintained by Gruppio.




Forrest 1.0.3

  • By
  • Michele Gruppioni

alt Echolor

Analytics

Run Forrest Run

Run Shell Commands in Swift

Forrest Features:

  • Execute any Shell Command in your Swift Scripts
  • Super Easy to use
  • Pipe commands easly
  • < 1000 lines of code

Example:

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

Included Examples:

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

How to Install:

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"

Author:

  • Developed by Michele Gruppioni
  • Inspired by Swiftline

License

Forrest is available under the MIT license. See the LICENSE file for more info.