Gruppio / Run-Forrest-Run

Run Shell Commands in Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

alt Echolor

CI Status Version License Platform 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.

About

Run Shell Commands in Swift

License:MIT License


Languages

Language:Swift 89.2%Language:Ruby 10.8%