# Repo

    public class Repo

Repo is a class that wraps a golang `repo` object

Should not be used on its own

Show on GitHub

- `init(_:)`

  Class constructor using url passed as parameter as repo path

  Throws

  `RepoError`: If the opening of the repo failed

  #### Declaration

  Swift

      public init(_ url: URL) throws

  #### Parameters

  `url` | The path of the repo

  Show on GitHub
- `isInitialized(_:)`

  Returns True if the repo is initialized

  Throws

  `RepoError`: If the checking failed

  #### Declaration

  Swift

      public static func isInitialized(_ url: URL) -> Bool

  #### Parameters

  `url` | The path of the repo

  #### Return Value

  True, if the repo is initialized

  Show on GitHub
- `initialize(_:_:)`

  Initializes the repo using the path and the config passed as parameters

  Throws

  `RepoError`: If the initialization of the repo failed

  #### Declaration

  Swift

      public static func initialize(_ url: URL, _ config: Config) throws

  #### Parameters

  `url` | The path of the repo
  `config` | The config of the repo

  Show on GitHub
- `getConfig()`

  Gets the config of the repo

  Throws

  `RepoError`: If the getting of the config failed

  #### Declaration

  Swift

      public func getConfig() throws -> Config

  Show on GitHub
- `setConfig(_:)`

  Sets the config of the repo

  Throws

  `RepoError`: If the setting of the config failed

  #### Declaration

  Swift

      public func setConfig(_ config: Config) throws

  #### Parameters

  `config` | The config to set

  Show on GitHub

© 2022 . All rights reserved. (Last updated: 2022-12-05)

Generated by jazzy ♪♫ v0.14.3, a Realm project.