0001 // 0002 // Version.swift 0003 // SourceKitten 0004 // 0005 // Created by JP Simard on 2015-01-07. 0006 // Copyright (c) 2015 SourceKitten. All rights reserved. 0007 // 0008 0009 import Commandant 0010 import Result 0011 0012 private let version= "0.10.0" 0013 0014 struct VersionCommand
VersionCommand.swift:19 print(version): CommandType { 0015 let verb = "version" 0016 let function = "Display the current version of SourceKitten" 0017 0018 func run(options: NoOptions<SourceKittenError>) -> Result<(), SourceKittenError> { 0019 print(version) 0020 return .Success() 0021 } 0022 } 0023
main.swift:21 registry.register(VersionCommand())