prep for 1.2.0 release updates
This commit is contained in:
@@ -25,8 +25,8 @@ struct LyrebirdCLIMain {
|
||||
print("lyrebird \(lyrebirdVersion)")
|
||||
case .help:
|
||||
printHelp()
|
||||
case .new(let name, let template, let lyrebirdPath):
|
||||
runNew(name: name, template: template, lyrebirdPath: lyrebirdPath)
|
||||
case .new(let name, let template, let lyrebirdPath, let shoegazePath):
|
||||
runNew(name: name, template: template, lyrebirdPath: lyrebirdPath, shoegazePath: shoegazePath)
|
||||
case .run(let release):
|
||||
runProject(release: release)
|
||||
case .export(let name, let toPath, let overwrite):
|
||||
@@ -106,7 +106,8 @@ struct LyrebirdCLIMain {
|
||||
private static func runNew(
|
||||
name: String,
|
||||
template: ProjectTemplate,
|
||||
lyrebirdPath: String?
|
||||
lyrebirdPath: String?,
|
||||
shoegazePath: String? = nil
|
||||
) {
|
||||
let resolvedPath: String?
|
||||
if let p: String = lyrebirdPath {
|
||||
@@ -129,11 +130,34 @@ struct LyrebirdCLIMain {
|
||||
|
||||
""", stderr)
|
||||
}
|
||||
|
||||
// Resolve ShoeGaze path (shoegaze template only).
|
||||
let resolvedShoegazePath: String?
|
||||
if let p: String = shoegazePath {
|
||||
resolvedShoegazePath = URL(fileURLWithPath: p).standardizedFileURL.path
|
||||
} else {
|
||||
resolvedShoegazePath = nil
|
||||
}
|
||||
if template == .shoegaze || template == .shoegazeIOS {
|
||||
if let path: String = resolvedShoegazePath {
|
||||
print("ShoeGaze dependency: local checkout at \(path)")
|
||||
} else {
|
||||
fputs("""
|
||||
note: --shoegaze-path not supplied; the generated project will use \
|
||||
the placeholder URL \(ProjectScaffolder.shoegazePackageURL). \
|
||||
Edit the project or re-run with --shoegaze-path <path to ShoeGaze checkout> \
|
||||
until ShoeGaze is published at that URL.
|
||||
|
||||
""", stderr)
|
||||
}
|
||||
}
|
||||
|
||||
do {
|
||||
try ProjectScaffolder.scaffold(
|
||||
name: name,
|
||||
template: template,
|
||||
lyrebirdPath: effectivePath
|
||||
lyrebirdPath: effectivePath,
|
||||
shoegazePath: resolvedShoegazePath
|
||||
)
|
||||
print("Created \(name)/")
|
||||
} catch ProjectScaffolder.Error.projectExists(let n) {
|
||||
@@ -194,8 +218,15 @@ struct LyrebirdCLIMain {
|
||||
Usage: lyrebird [command]
|
||||
|
||||
Commands:
|
||||
new <name> [--template <t>] Scaffold a new Lyrebird Swift Package
|
||||
Templates: basic (default), demo, ui-demo, nrt, score
|
||||
new <name> [--template <t>] Scaffold a new Lyrebird project
|
||||
SPM templates (open Package.swift in Xcode):
|
||||
basic (default), demo, ui-demo, nrt, score
|
||||
Xcode-project templates (build to .app or .appex):
|
||||
shoegaze macOS guitar-pedalboard app (Xcode, .app)
|
||||
shoegaze-ios iOS guitar-pedalboard app (Xcode, .app)
|
||||
macos-ui-xcode macOS @UIParam synth app
|
||||
ios-ui iOS @UIParam synth app
|
||||
auv3 AUv3 host + .appex
|
||||
run [--release] Build and run the current project
|
||||
export <name> [--to p] Export a Synthesizer template to a .swift file
|
||||
install-templates [--force] Install Xcode file templates (Generator,
|
||||
@@ -205,6 +236,13 @@ struct LyrebirdCLIMain {
|
||||
version Print lyrebird version
|
||||
help Show this help
|
||||
|
||||
Flags for `new`:
|
||||
--template <t> Template name (see above)
|
||||
--lyrebird-path <path> Use a local Lyrebird checkout instead of the
|
||||
published remote package URL
|
||||
--shoegaze-path <path> (shoegaze / shoegaze-ios) Use a local ShoeGaze
|
||||
checkout instead of the placeholder remote URL
|
||||
|
||||
Run `lyrebird` with no arguments for an interactive shell.
|
||||
""")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user