RbSwift
RbSwift copied to clipboard
Please update pod.
Although
public static func chdir<T>(_ path: String = "~", closure: (() -> T)) -> T {
let pwd = Dir.pwd
Dir.chdir(path)
let result = closure()
Dir.chdir(pwd)
return result
}
But if you install through Pod it still
public static func chdir<T>(_ path: String = "~", closure: ((Void) -> T)) -> T {
let pwd = Dir.pwd
Dir.chdir(path)
let result = closure()
Dir.chdir(pwd)
return result
}
Which in Swift 4 or later will generate error since it must pass tuple () to closure.