Skip to content
This repository was archived by the owner on Jan 5, 2020. It is now read-only.
This repository was archived by the owner on Jan 5, 2020. It is now read-only.

Please update pod. #5

@muizidn

Description

@muizidn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions