Bash 1.0.0

Bash 1.0.0

Meniny维护。



Bash 1.0.0

遇见 Bash

Bash

Author EMail MIT
Version Platforms Swift
Build Passing Cocoapods Carthage SPM

🏵介绍

Bash提供了从Swift脚本和命令行工具运行shell命令的功能。

📋要求

类型 需求

平台

iOS

N/A+

macOS

10.12

tvOS

N/A

watchOS

N/A

Linux

N/A

IDE

Xcode

9.3+

语言

Swift

4.1+

📲安装

CocoaPods

BashCocoaPods 上可用。

use_frameworks!
pod 'Bash'

手动

Bash目录中的所有文件复制到您的项目中。

🛌依赖

N/A

❤️贡献

欢迎您fork并提交pull请求。

🔖许可证

Bash是开源软件,许可协议为MIT许可。

🔫用法

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