v1.2.3 release: remove ShoeGaze CLI scaffolding (ShoeGaze now standalone)
This commit is contained in:
@@ -18,13 +18,10 @@ 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.
|
||||
/// 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?
|
||||
lyrebirdPath: String?
|
||||
)
|
||||
/// Run the current project with `swift run`.
|
||||
case run(release: Bool)
|
||||
@@ -76,21 +73,10 @@ public enum CLICommand: Equatable {
|
||||
} else {
|
||||
lyrebirdPath = nil
|
||||
}
|
||||
// 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
|
||||
lyrebirdPath: lyrebirdPath
|
||||
)
|
||||
|
||||
case "run":
|
||||
|
||||
Reference in New Issue
Block a user