Work:执行shell命令并获取输出。 简单而强大

时间:2021-05-09 13:51:03
【文件属性】:
文件名称:Work:执行shell命令并获取输出。 简单而强大
文件大小:40KB
文件格式:ZIP
更新时间:2021-05-09 13:51:03
swift cli task process shellscript 工作 执行shell命令并获取输出。 简单而强大。 目录 安装 将工作添加到Package.swift 。 dependencies : [ . package ( url : " https://github.com/flintbox/Work " , from : " 0.1.0 " ) ] 工作 是包装对象的子类。 例子 同步 主Swift import Foundation import Work // Create shell commands. let echo1 = Work ( command : " echo 1-1; sleep 1; echo 1-2; sleep 1; echo 1-3 " , standardOutputHandler : { output in print ( " echo1 says: \(
【文件预览】:
Work-master
----Assets()
--------logo.svg(2KB)
--------logo.afdesign(31KB)
----Sources()
--------work-async()
--------Work()
--------work-sync()
----LICENSE(1KB)
----README.md(3KB)
----Package.swift(433B)
----.gitignore(41B)

网友评论