Files
wehub-resource-sync 1d1286fadb
Build / Build and test (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:18:38 +08:00

26 lines
661 B
Swift

import Foundation
import MacToolsPluginKit
/// Stores one app-to-shortcut binding.
struct AppShortcutEntry: Codable, Identifiable, Equatable {
let id: UUID
/// The `.app` bundle's `file://` URL string.
var bundleURLString: String
var displayName: String
var shortcut: ShortcutBinding?
var bundleURL: URL? { URL(string: bundleURLString) }
init(
id: UUID = UUID(),
bundleURL: URL,
displayName: String,
shortcut: ShortcutBinding? = nil
) {
self.id = id
self.bundleURLString = bundleURL.absoluteString
self.displayName = displayName
self.shortcut = shortcut
}
}