Defined the Package, App, and AppTests mustache templates in the library target.

This commit is contained in:
2025-02-04 23:49:56 +01:00
parent 7b1cb9ae2a
commit 87dc069917
4 changed files with 99 additions and 1 deletions
@@ -0,0 +1,20 @@
import AppLibrary
import ArgumentParser
@main
struct App: AsyncParsableCommand {
// MARK: Properties
@OptionGroup var options: Options
// MARK: Functions
mutating func run() async throws {
let builder = AppBuilder(name: "{{ name }}")
let app = try await builder(options)
try await app.runService()
}
}