gitbay/Views/Repos/RepoRoute.swift

1c5622210d0f72efd86582ce195a6741401e7939
gitbay-ios/gitbay/Views/Repos/RepoRoute.swift history · blame · raw

20 lines · 697 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, ref: String?, path: String?)
10    case settings(repo: String)
11    case grep(repo: String)
12    case blame(repo: String, path: String, ref: String?)
13    case refs(repo: String)
14    case milestones(repo: String)
15    case commit(repo: String, sha: String)
16    case commitDiff(repo: String, sha: String)
17    case profile(String)
18    case account
19    case addAccount
20}