mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
22 lines
488 B
Swift
22 lines
488 B
Swift
//
|
|
// VersionCommand.swift
|
|
// SwiftLint
|
|
//
|
|
// Created by JP Simard on 5/16/15.
|
|
// Copyright © 2015 Realm. All rights reserved.
|
|
//
|
|
|
|
import Commandant
|
|
import Result
|
|
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()
|
|
}
|
|
}
|