Worth a read for some more context.
Create the file in the root of the project (where your Package.swift file lives as well), and use the following contents:
/// Package.xcconfigWorth a read for some more context.
Create the file in the root of the project (where your Package.swift file lives as well), and use the following contents:
/// Package.xcconfig| import Foundation | |
| extension URLRequest { | |
| /** | |
| Returns a cURL command representation of this URL request. | |
| */ | |
| public var curlString: String { | |
| guard let url = url else { return "" } | |
| var baseCommand = #"curl "\#(url.absoluteString)""# |
| Puts on glasses: | |
| (•_•) | |
| ( •_•)>⌐■-■ | |
| (⌐■_■) | |
| Takes off glasses ("mother of god..."): | |
| (⌐■_■) | |
| ( •_•)>⌐■-■ |