Publicist

Publicist is a tool for changing swift internal access level into public.

MIT License

Stars
5

Publicist

Publicist is a tool for changing swift internal access level into public.

// Shop.swiftbefore
struct Shop {
    enum Food {}

    private let id: Int

    let name: String

    func serve() {}
}
$ publicist Shop.swift
 Rewriting Shop.swift
 Complete
// Shop.swift (after)
public struct Shop {
    public enum Food {}

    private let id: Int

    public let name: String

    public func serve() {}
}

Installing

Homebrew

$ brew tap komaji/Publicist https://github.com/komaji/Publicist.git
$ brew install publicist

Manually

$ git clone https://github.com/komaji/Publicist.git
$ cd Publicist
$ make install