2025-02-22 10:21:07 +01:00
|
|
|
import AppLibrary
|
|
|
|
import ArgumentParser
|
|
|
|
|
|
|
|
@main
|
|
|
|
struct App: AsyncParsableCommand {
|
|
|
|
|
|
|
|
// MARK: Properties
|
|
|
|
|
|
|
|
@OptionGroup var options: Options
|
|
|
|
|
|
|
|
// MARK: Functions
|
|
|
|
|
|
|
|
mutating func run() async throws {
|
2025-03-09 14:42:35 +01:00
|
|
|
let appBuilder = AppBuilder(
|
|
|
|
appName: "Doxy",
|
|
|
|
archivesFolder: "Resources/Archives"
|
|
|
|
)
|
|
|
|
|
|
|
|
let app = try await appBuilder(options)
|
2025-02-22 10:21:07 +01:00
|
|
|
|
|
|
|
try await app.runService()
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|