Bash
Meet
🏵 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
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"))