prep for 1.2.0 release updates

This commit is contained in:
2026-06-21 11:45:58 -07:00
parent 73191c958f
commit 032b7c39d3
286 changed files with 21116 additions and 121 deletions
+24 -4
View File
@@ -18,7 +18,14 @@ public enum CLICommand: Equatable {
/// When `lyrebirdPath` is set, the generated `Package.swift` and (where
/// applicable) `.xcodeproj` reference Lyrebird as a local SPM package at
/// that absolute path instead of pulling from the published Git URL.
case new(name: String, template: ProjectTemplate, lyrebirdPath: String?)
/// When `shoegazePath` is set (shoegaze template only), the ShoeGaze
/// package is wired as a local SPM dependency at that absolute path.
case new(
name: String,
template: ProjectTemplate,
lyrebirdPath: String?,
shoegazePath: String?
)
/// Run the current project with `swift run`.
case run(release: Bool)
/// Export a named Synthesizer template to a Swift source file.
@@ -69,9 +76,22 @@ public enum CLICommand: Equatable {
} else {
lyrebirdPath = nil
}
return .new(name: arguments[2],
template: template,
lyrebirdPath: lyrebirdPath)
// Optional `--shoegaze-path <abs-path>` for shoegaze template only.
// Value must not be a flag token.
let shoegazePath: String?
if let sIdx: Array<String>.Index = arguments.firstIndex(of: "--shoegaze-path"),
sIdx + 1 < arguments.count,
!arguments[sIdx + 1].hasPrefix("-") {
shoegazePath = arguments[sIdx + 1]
} else {
shoegazePath = nil
}
return .new(
name: arguments[2],
template: template,
lyrebirdPath: lyrebirdPath,
shoegazePath: shoegazePath
)
case "run":
let release: Bool = arguments.contains("--release")