File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ struct ReleaseNotes: AsyncParsableCommand {
3232 return
3333 }
3434
35- guard let output = try runPackageUpdate ( ) else {
35+ guard let output = try Self . runPackageUpdate ( in : workingDirecory ) else {
3636 print ( " Package update did not return any changes. " )
3737 return
3838 }
@@ -60,8 +60,8 @@ struct ReleaseNotes: AsyncParsableCommand {
6060 }
6161 }
6262
63- func runPackageUpdate( ) throws -> String ? {
64- let process = updateProcess ( )
63+ static func runPackageUpdate( in workingDirecory : String ) throws -> String ? {
64+ let process = updateProcess ( workingDirecory : workingDirecory )
6565 let pipe = Pipe ( )
6666 process. standardOutput = pipe
6767
@@ -82,7 +82,7 @@ struct ReleaseNotes: AsyncParsableCommand {
8282 return stdout
8383 }
8484
85- func updateProcess( ) -> Process {
85+ static func updateProcess( workingDirecory : String ) -> Process {
8686 let process = Process ( )
8787 process. executableURL = URL ( fileURLWithPath: " /bin/bash " )
8888 process. arguments = [
You can’t perform that action at this time.
0 commit comments