mirror of
https://github.com/realm/SwiftLint.git
synced 2026-05-07 20:12:49 +00:00
13 lines
340 B
Swift
13 lines
340 B
Swift
import Commandant
|
|
import SwiftLintFramework
|
|
|
|
struct VersionCommand: CommandProtocol {
|
|
let verb = "version"
|
|
let function = "Display the current version of SwiftLint"
|
|
|
|
func run(_ options: NoOptions<CommandantError<()>>) -> Result<(), CommandantError<()>> {
|
|
print(Version.current.value)
|
|
return .success(())
|
|
}
|
|
}
|