mirror of
https://github.com/xtool-org/xtool.git
synced 2026-10-01 13:56:48 +02:00
19 lines
468 B
Swift
19 lines
468 B
Swift
import Foundation
|
|
import XKit
|
|
import XToolSupport
|
|
import Dependencies
|
|
|
|
@_documentation(visibility: private)
|
|
@main
|
|
enum XToolMain {
|
|
static func main() async throws {
|
|
prepareDependencies { _ in
|
|
// TODO: Improve persistence mechanism
|
|
// for Windows, we could use dpapi.h or wincred.h.
|
|
// for Linux, maybe use libsecret?
|
|
// see https://github.com/atom/node-keytar
|
|
}
|
|
try await XTool.run()
|
|
}
|
|
}
|