Skip to content

armgit / xtool

Public Imported from GitHub
0

Cross-platform Xcode replacement. Build and deploy iOS apps with SwiftPM on Linux, Windows, macOS.

Refine NewCommand

Kabir Oberai205041caa0bc
diff --git a/Sources/XToolSupport/NewCommand.swift b/Sources/XToolSupport/NewCommand.swift
index 4a5fda8..ca1a24f 100644
--- a/Sources/XToolSupport/NewCommand.swift
+++ b/Sources/XToolSupport/NewCommand.swift
@@ -79,7 +79,7 @@ struct NewCommand: AsyncParsableCommand {
.macOS(.v14),
],
products: [
- // An xtool project should contain exactly one library target,
+ // An xtool project should contain exactly one library product,
// representing the main app.
.library(
name: "\(moduleName)",
@@ -116,7 +116,6 @@ struct NewCommand: AsyncParsableCommand {
.netrc
/xtool
- /.sourcekit-lsp
"""
),
diff --git a/Sources/XToolSupport/SetupCommand.swift b/Sources/XToolSupport/SetupCommand.swift
index 22bd99e..d8a358f 100644
--- a/Sources/XToolSupport/SetupCommand.swift
+++ b/Sources/XToolSupport/SetupCommand.swift
@@ -25,7 +25,9 @@ struct SetupOperation {
try await AuthOperation(logoutFromExisting: false, quiet: quiet).run()
#if os(macOS)
- print("Skipping Darwin SDK setup since we're on macOS.")
+ if !quiet {
+ print("Skipping Darwin SDK setup since we're on macOS.")
+ }
#else
switch try DarwinSDK.current()?.isUpToDate() {
case true?: