Skip to content

Commit 2c4b130

Browse files
committed
Make the command echo less verbose
1 parent a0829bf commit 2c4b130

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tools/build-swiftly-release/BuildSwiftlyRelease.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ extension Runnable {
2525
// Runs the command while echoing the full command-line to stdout for logging and reproduction
2626
func runEcho(environment: Environment = .inherit, quiet: Bool = false) async throws {
2727
let config = self.config()
28-
if !quiet { print("\(config)") }
28+
if !quiet { print("\(config.executable) \(config.arguments)") }
2929
try await self.run(environment: environment, quiet: quiet)
3030
}
3131
}
@@ -181,7 +181,7 @@ struct BuildSwiftlyRelease: AsyncParsableCommand {
181181
.name("swift"),
182182
arguments: ["--version"]
183183
)
184-
print("\(swiftVersionCmd)")
184+
print("\(swiftVersionCmd.executable) \(swiftVersionCmd.arguments)")
185185

186186
let swiftVerOutput = (try await Subprocess.run(swiftVersionCmd, output: .string(limit: 1024))).standardOutput ?? ""
187187
guard let swiftVerMatch = try swiftVerRegex.firstMatch(in: swiftVerOutput) else {
@@ -236,7 +236,7 @@ struct BuildSwiftlyRelease: AsyncParsableCommand {
236236
],
237237
environment: customEnv,
238238
)
239-
print("\(configCmd)")
239+
print("\(configCmd.executable) \(configCmd.arguments)")
240240

241241
let result = try await Subprocess.run(
242242
configCmd,

0 commit comments

Comments
 (0)