Files
SwiftLint/Source/swiftlint/Commands/VersionCommand.swift
T

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(())
}
}