Repo
public class Repo
Repo is a class that wraps a golang repo
object
Should not be used on its own
-
Class constructor using url passed as parameter as repo path
Throws
RepoError
: If the opening of the repo failedDeclaration
Swift
public init(_ url: URL) throws
Parameters
url
The path of the repo
-
Returns True if the repo is initialized
Throws
RepoError
: If the checking failedDeclaration
Swift
public static func isInitialized(_ url: URL) -> Bool
Parameters
url
The path of the repo
Return Value
True, if the repo is initialized