@@ -71,7 +71,8 @@ struct GeneratorCLI: AsyncParsableCommand {
7171
7272 logger. info (
7373 " Generator run finished successfully. " ,
74- metadata: [ " elapsedTime " : . string( elapsed. intervalString) ] )
74+ metadata: [ " elapsedTime " : . string( elapsed. intervalString) ]
75+ )
7576 }
7677}
7778
@@ -167,7 +168,8 @@ extension GeneratorCLI {
167168 if let arch = hostArch {
168169 let target = Triple ( arch: arch, vendor: current. vendor!, os: current. os!)
169170 appLogger. warning (
170- " deprecated: Please use `--host \( target. triple) ` instead of `--host-arch \( arch) ` " )
171+ " deprecated: Please use `--host \( target. triple) ` instead of `--host-arch \( arch) ` "
172+ )
171173 return target
172174 }
173175 return current
@@ -219,7 +221,8 @@ extension GeneratorCLI {
219221 if let arch = generatorOptions. targetArch {
220222 let target = Triple ( arch: arch, vendor: nil , os: . linux, environment: . gnu)
221223 appLogger. warning (
222- " deprecated: Please use `--target \( target. triple) ` instead of `--target-arch \( arch) ` " )
224+ " deprecated: Please use `--target \( target. triple) ` instead of `--target-arch \( arch) ` "
225+ )
223226 }
224227 return Triple ( arch: hostTriple. arch!, vendor: nil , os: . linux, environment: . gnu)
225228 }
@@ -240,7 +243,9 @@ extension GeneratorCLI {
240243 let linuxDistributionVersion =
241244 self . linuxDistributionVersion ?? linuxDistributionDefaultVersion
242245 let linuxDistribution = try LinuxDistribution (
243- name: linuxDistributionName, version: linuxDistributionVersion)
246+ name: linuxDistributionName,
247+ version: linuxDistributionVersion
248+ )
244249 let hostTriple = try self . generatorOptions. deriveHostTriple ( )
245250 let targetTriple = self . deriveTargetTriple ( hostTriple: hostTriple)
246251
@@ -259,7 +264,10 @@ extension GeneratorCLI {
259264 logger: loggerWithLevel ( from: self . generatorOptions)
260265 )
261266 try await GeneratorCLI . run (
262- recipe: recipe, targetTriple: targetTriple, options: self . generatorOptions)
267+ recipe: recipe,
268+ targetTriple: targetTriple,
269+ options: self . generatorOptions
270+ )
263271 }
264272
265273 func isInvokedAsDefaultSubcommand( ) -> Bool {
@@ -316,7 +324,10 @@ extension GeneratorCLI {
316324 )
317325 let targetTriple = self . deriveTargetTriple ( )
318326 try await GeneratorCLI . run (
319- recipe: recipe, targetTriple: targetTriple, options: self . generatorOptions)
327+ recipe: recipe,
328+ targetTriple: targetTriple,
329+ options: self . generatorOptions
330+ )
320331 }
321332 }
322333}
@@ -327,12 +338,19 @@ extension Duration {
327338 let date = Date ( timeInterval: TimeInterval ( self . components. seconds) , since: reference)
328339
329340 let components = Calendar . current. dateComponents (
330- [ . hour, . minute, . second] , from: reference, to: date)
341+ [ . hour, . minute, . second] ,
342+ from: reference,
343+ to: date
344+ )
331345
332346 if let hours = components. hour, hours > 0 {
333347 #if !canImport(Darwin) && compiler(<6.0)
334348 return String (
335- format: " %02d:%02d:%02d " , hours, components. minute ?? 0 , components. second ?? 0 )
349+ format: " %02d:%02d:%02d " ,
350+ hours,
351+ components. minute ?? 0 ,
352+ components. second ?? 0
353+ )
336354 #else
337355 return self . formatted ( )
338356 #endif
0 commit comments