INNER CODE UNIT · Swift
createOutputDirectory
apple/swift-argument-parser · Plugins/GenerateCommon/PackagePlugin+Helpers.swift:38
func createOutputDirectory() throws {
do {
try FileManager.default.createDirectory(
at: self,
withIntermediateDirectories: true)
} catch {
throw GeneratePluginError.createOutputDirectoryFailed(error)
}
}
func exec(arguments: [String]) throws {
do {
let process = Process()
process.executableURL = self
process.arguments = arguments
try process.run()
process.waitUntilExit()
guard