Modern Apps git

← xtool.git

Refine NewCommand

Commit
205041caa0bc366688b65a18e0c71ee3e5d3b8fc
Author
Kabir Oberai <[email protected]>
When
2025-05-09 05:40 UTC (1 year ago)
Parents
bc0e195
Tweak template, respect quiet flag on macOS

Diff

Sources/XToolSupport/NewCommand.swift
diff --git a/Sources/XToolSupport/NewCommand.swift b/Sources/XToolSupport/NewCommand.swiftindex 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                 """             ), 
Sources/XToolSupport/SetupCommand.swift
diff --git a/Sources/XToolSupport/SetupCommand.swift b/Sources/XToolSupport/SetupCommand.swiftindex 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?: