Template support for input parameters (#4)

This PR contains the work done to support input parameters for the `create` command of the executable target, and to render content dynamically for the newly-generated project.

Reviewed-on: #4
Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
This commit was merged in pull request #4.
This commit is contained in:
2025-02-17 22:11:05 +00:00
committed by Javier Cicchelli
parent 9be8fa4a31
commit 212ca52279
33 changed files with 812 additions and 202 deletions
+1 -1
View File
@@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2024 Adam Fowler
Copyright 2025 Röck+Cöde
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -11,7 +11,7 @@ struct App: AsyncParsableCommand {
// MARK: Functions
mutating func run() async throws {
let builder = AppBuilder(name: "App")
let builder = AppBuilder(name: "{{ name }}")
let app = try await builder(options)
try await app.runService()
@@ -3,7 +3,7 @@
import PackageDescription
let package = Package(
name: "App",
name: "{{ name }}",
platforms: [
.macOS(.v14)
],
@@ -8,7 +8,7 @@ struct AppTests {
// MARK: Properties
private let arguments = TestArguments()
private let builder = AppBuilder(name: "App")
private let builder = AppBuilder(name: "{{ name }}")
// MARK: Route tests