gitbay/Views/Repos/RepoRoute.swift

5411753023a5e2958f17b523903abce380941107
gitbay-ios/gitbay/Views/Repos/RepoRoute.swift history · blame · raw

15 lines · 459 bytes

 1import Foundation
 2
 3/// Navigation destinations for the repo stack. Values, so navigation is
 4/// testable and deep-linkable later.
 5nonisolated enum RepoRoute: Hashable {
 6    case repo(String)
 7    case tree(repo: String, directory: String, ref: String?)
 8    case file(repo: String, path: String, ref: String?)
 9    case log(repo: String)
10    case settings(repo: String)
11    case grep(repo: String)
12    case profile(String)
13    case account
14    case addAccount
15}