Scaffold v1.0.0
This commit is contained in:
18
Sources/EmbedderTool/EmbedderToolEntry.swift
Normal file
18
Sources/EmbedderTool/EmbedderToolEntry.swift
Normal file
@@ -0,0 +1,18 @@
|
||||
import Foundation
|
||||
|
||||
@main
|
||||
enum EmbedderToolEntry {
|
||||
static func main() {
|
||||
do {
|
||||
let invocation = try CommandLineInvocation.parse(CommandLine.arguments)
|
||||
try EmbedderTool().run(invocation: invocation)
|
||||
} catch {
|
||||
reportFailure(error)
|
||||
exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
private static func reportFailure(_ error: Error) {
|
||||
FileHandle.standardError.write(Data("EmbedderTool: \(error)\n".utf8))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user