Modern Apps git

xtool.git

Public
git clone https://git.maproj.org/xtool.git
appstore-distribution ▾

xtool.git / Sources / xtool / XTool.swift

XTool.swift18 lines · 468 BRaw
1import Foundation
2import XKit
3import XToolSupport
4import Dependencies
5
6@_documentation(visibility: private)
7@main
8enum XToolMain {
9 static func main() async throws {
10 prepareDependencies { _ in
11 // TODO: Improve persistence mechanism
12 // for Windows, we could use dpapi.h or wincred.h.
13 // for Linux, maybe use libsecret?
14 // see https://github.com/atom/node-keytar
15 }
16 try await XTool.run()
17 }
18}