mirror of
https://github.com/xtool-org/xtool.git
synced 2026-02-04 11:53:30 +01:00
23 lines
739 B
Swift
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()
|
|
}
|
|
}
|