 import Foundation
 import Rainbow
+
+public typealias Tag = String
+public typealias Head = String
 
 public struct Repository: Decodable {
     public let nameWithOwner: String

    }

    public var latestVersion: String? {
        return tags.last?.name
    }

    public var shortCliRepresentation: String {
        let priv = isPrivate ? "private" : ""
        let fork = "Fork of \(parent ?? "unknown")".lightBlue
        var output = """
        - \(owner.bold.italic)/\(name.lightCyan.bold) \(latestVersion ?? "unreleased".italic) \(priv.yellow)
          \(url.absoluteString.italic)
        """
        if isFork {

            return ".package(url: \"\(self.url)\", \(requirement.packageString)),"
        }
    }
}

extension Repository.DependencyRepresentationError: LocalizedError {
