💻 Run Bash commands from Swift scripts and command line tools.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Bash 1.0.0 May 8, 2018
Sample 1.0.0 May 8, 2018
.gitignore 1.0.0 May 8, 2018
Bash.podspec 1.0.0 May 8, 2018
LICENSE.md mit May 19, 2018
README.adoc 1.0.0 May 8, 2018
_config.yml

README.adoc

Meet Bash

Bash

Author EMail MIT
Version Platforms Swift
Build Passing Cocoapods Carthage SPM

🏵 Introduction

Bash is Run shell commands from Swift scripts and command line tools..

📋 Requirements

Type Requirement

Platform

iOS

N/A+

macOS

10.12

tvOS

N/A

watchOS

N/A

Linux

N/A

IDE

Xcode

9.3+

Language

Swift

4.1+

📲 Installation

CocoaPods

Bash is available on CocoaPods.

use_frameworks!
pod 'Bash'

Manually

Copy all files in the Bash directory into your project.

🛌 Dependency

N/A

❤️ Contribution

You are welcome to fork and submit pull requests.

🔖 License

Bash is open-sourced software, licensed under the MIT license.

🔫 Usage

import Bash

do {
    print(try Bash.run("cd", args: "~/Desktop"))
    print(try Bash.run("pwd"))
    print(try Bash.run("ls", args: "-al"))
} catch {
    print(error)
}
import Bash

print(Bash.exec(commands: "cd ~/Desktop", "mkdir BashTest", "ls -al"))