gitbay/Views/Repos/RepoRoute.swift
21 lines · 724 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 wiki(repo: String)
16 case wikiPage(repo: String, page: String)
17 case commit(repo: String, sha: String)
18 case profile(String)
19 case account
20 case addAccount
21}