Files
xtool-mirror/Sources/xtool/XTool.swift
Kabir Oberai e45e2873d5 XTool target -> xtool
DocC/SPI doesn’t like the target and product having diff names
2025-05-07 23:48:08 +05:30

23 lines
739 B
Swift

import Foundation
import XKit
import XToolSupport
import Dependencies
@_documentation(visibility: private)
@main
enum XToolMain {
static func main() async throws {
prepareDependencies { dependencies in
#warning("Improve persistence mechanism")
// for macOS, we can use KeychainStorage but we need to sign with entitlements.
// for Windows, we could use dpapi.h or wincred.h.
// for Linux, maybe use libsecret?
// see https://github.com/atom/node-keytar
// #if os(macOS)
// dependencies.keyValueStorage = KeychainStorage(service: "com.kabiroberai.xtool-keychain.credentials")
// #endif
}
try await XTool.run()
}
}