-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor version number to use a struct (#145)
- Loading branch information
1 parent
8053ab1
commit 7328fa0
Showing
2 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -225,5 +225,5 @@ func handleHelpCommand() { | |
|
||
|
||
func handleVersionCommand() { | ||
print(PLANK_VERSION) | ||
print(Version.current.value) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | ||
} |