File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,11 @@ public struct SwiftlyCoreContext: Sendable {
4545 self . currentDirectory = cwd
4646 }
4747
48+ public init ( httpClient: SwiftlyHTTPClient ) {
49+ self . httpClient = httpClient
50+ self . currentDirectory = cwd
51+ }
52+
4853 /// Pass the provided string to the set output handler if any.
4954 /// If no output handler has been set, just print to stdout.
5055 public func print( _ string: String = " " , terminator: String ? = nil ) async {
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ extension SwiftlyCoreContext {
6565 outputHandler: ( any OutputHandler ) ? ,
6666 inputProvider: ( any InputProvider ) ?
6767 ) {
68- self . init ( )
68+ self . init ( httpClient : SwiftlyHTTPClient ( httpRequestExecutor : httpRequestExecutor ) )
6969
7070 self . mockedHomeDir = mockedHomeDir
7171 self . currentDirectory = mockedHomeDir ?? cwd
You can’t perform that action at this time.
0 commit comments