Files
SwiftLint/Source/swiftlint/main.swift
T
JP Simard 35290a1935 add missing imports
to help compile on Linux later
2016-12-11 14:04:49 -08:00

28 lines
647 B
Swift

//
// main.swift
// SwiftLint
//
// Created by JP Simard on 5/16/15.
// Copyright © 2015 Realm. All rights reserved.
//
import Commandant
import Dispatch
import Foundation
import SwiftLintFramework
DispatchQueue.global().async {
let registry = CommandRegistry<CommandantError<()>>()
registry.register(LintCommand())
registry.register(AutoCorrectCommand())
registry.register(VersionCommand())
registry.register(RulesCommand())
registry.register(HelpCommand(registry: registry))
registry.main(defaultVerb: LintCommand().verb) { error in
queuedPrintError(String(describing: error))
}
}
dispatchMain()