Skip to content

Commit

Permalink
Refactor version number to use a struct (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
maicki authored and rahul-malik committed Aug 15, 2018
1 parent 8053ab1 commit 7328fa0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/plank/Cli.swift
Original file line number Diff line number Diff line change
Expand Up @@ -225,5 +225,5 @@ func handleHelpCommand() {


func handleVersionCommand() {
print(PLANK_VERSION)
print(Version.current.value)
}
15 changes: 14 additions & 1 deletion Sources/plank/Version.swift
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
let PLANK_VERSION = "1.4.1"
//
// Version.swift
// Plank
//
// Created by Michael Schneider on 8/15/18.
//

import Foundation

public struct Version {
public let value: String

public static let current = Version(value: "1.4.1")
}

0 comments on commit 7328fa0

Please sign in to comment.