xtool.git
Publicgit clone https://git.maproj.org/xtool.gitxtool.git / Sources / xtool / XTool.swift
XTool.swift18 lines · 468 BRaw
| 1 | import Foundation |
| 2 | import XKit |
| 3 | import XToolSupport |
| 4 | import Dependencies |
| 5 | |
| 6 | @_documentation(visibility: private) |
| 7 | @main |
| 8 | enum 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 | } |