Defined the Package, App, and AppTests mustache templates in the library target.
This commit is contained in:
1 parent
7b1cb9ae2a
commit
87dc069917
4 files changed
+99
-1
No files matched your search
@@ -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()
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user