diff --git a/Makefile b/Makefile index 1d56521..2bf6108 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ TOOL_NAME = Genesis export EXECUTABLE_NAME = genesis -VERSION = 0.5.0 +VERSION = 0.6.0 PREFIX = /usr/local INSTALL_PATH = $(PREFIX)/bin/$(EXECUTABLE_NAME) diff --git a/Sources/GenesisCLI/GenerateCommand.swift b/Sources/GenesisCLI/GenerateCommand.swift index 8789d02..5edec0f 100644 --- a/Sources/GenesisCLI/GenerateCommand.swift +++ b/Sources/GenesisCLI/GenerateCommand.swift @@ -36,7 +36,7 @@ class GenerateCommand: Command { context = ProcessInfo.processInfo.environment // extract options from option path - if let optionPath = self.optionPath.value { + if let optionPath = optionPath.value { let path = Path(optionPath) if !path.exists { stream.out <<< "Option path \(optionPath) doesn't exist" diff --git a/Sources/GenesisCLI/GenesisCLI.swift b/Sources/GenesisCLI/GenesisCLI.swift index b95b97b..9be5458 100644 --- a/Sources/GenesisCLI/GenesisCLI.swift +++ b/Sources/GenesisCLI/GenesisCLI.swift @@ -3,7 +3,7 @@ import SwiftCLI public class GenesisCLI { - public let version = "0.5.0" + public let version = "0.6.0" let cli: CLI let stream: Streams diff --git a/Sources/GenesisKit/Input.swift b/Sources/GenesisKit/Input.swift index 02ba4bd..4722739 100644 --- a/Sources/GenesisKit/Input.swift +++ b/Sources/GenesisKit/Input.swift @@ -2,9 +2,9 @@ import Foundation import SwiftCLI -extension Input { +public extension Input { - public static func readOption(options: [String], prompt: String) -> String { + static func readOption(options: [String], prompt: String) -> String { let optionsString = options.enumerated() .map { " \($0.offset + 1). \($0.element)" } .joined(separator: "\n")