dann254 / Bash

πŸ’» Run Bash commands from Swift scripts and command line tools.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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"))

About

πŸ’» Run Bash commands from Swift scripts and command line tools.

License:MIT License


Languages

Language:Swift 97.1%Language:Ruby 2.9%