DispatchQueue.global(qos: .default).async { let registry = CommandRegistry<SourceKittenError>() registry.register(CompleteCommand()) registry.register(DocCommand()) registry.register(FormatCommand()) registry.register(IndexCommand()) registry.register(SyntaxCommand()) registry.register(StructureCommand()) registry.register(RequestCommand()) registry.register(VersionCommand()) registry.register(HelpCommand(registry: registry)) registry.main(defaultVerb: "help") { error in fputs("\(error)\n", stderr) } } dispatchMain()
dispatchMain()
って関数に突入させれば