2025-01-28 00:07:24 +00:00
|
|
|
import AppLibrary
|
|
|
|
import ArgumentParser
|
|
|
|
|
|
|
|
@main
|
|
|
|
struct App: AsyncParsableCommand {
|
|
|
|
|
|
|
|
// MARK: Properties
|
|
|
|
|
|
|
|
@OptionGroup var options: Options
|
|
|
|
|
|
|
|
// MARK: Functions
|
|
|
|
|
|
|
|
mutating func run() async throws {
|
2025-02-17 22:11:05 +00:00
|
|
|
let builder = AppBuilder(name: "{{ name }}")
|
2025-01-28 00:07:24 +00:00
|
|
|
let app = try await builder(options)
|
|
|
|
|
|
|
|
try await app.runService()
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|