diff options
Diffstat (limited to 'Hutch/App/DeepLink.swift')
| -rw-r--r-- | Hutch/App/DeepLink.swift | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Hutch/App/DeepLink.swift b/Hutch/App/DeepLink.swift index e42bd6b..bbf8885 100644 --- a/Hutch/App/DeepLink.swift +++ b/Hutch/App/DeepLink.swift @@ -9,6 +9,16 @@ enum DeepLink: Equatable { case ticket(owner: String, tracker: String, ticketId: Int) /// hutch://builds/<jobId> case build(jobId: Int) + /// hutch://builds (tab-level) + case buildsTab + /// hutch://repositories (tab-level) + case repositoriesTab + /// hutch://trackers (tab-level) + case trackersTab + /// hutch://status + case systemStatus + /// hutch://lookup + case lookup /// Attempt to parse a URL into a DeepLink. /// Expected format: hutch://<path> @@ -38,6 +48,21 @@ enum DeepLink: Equatable { guard let jobId = Int(components[1]) else { return nil } self = .build(jobId: jobId) + case "builds": + self = .buildsTab + + case "repositories": + self = .repositoriesTab + + case "trackers": + self = .trackersTab + + case "status": + self = .systemStatus + + case "lookup": + self = .lookup + default: return nil } |
