summaryrefslogtreecommitdiffstats
path: root/fern.go
diff options
context:
space:
mode:
authorsiddharth ravikumar <s@ricketyspace.net>2022-11-26 09:01:52 -0500
committersiddharth ravikumar <s@ricketyspace.net>2022-11-26 09:01:52 -0500
commitb1cf0985e27c0bcb6a1005ef9dd59e496ff05368 (patch)
tree6873b094c7611946847d437765f164d98c957ead /fern.go
parente986bab58e6292805e56138440109774d392b5ad (diff)
add `version` package.
Diffstat (limited to 'fern.go')
-rw-r--r--fern.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/fern.go b/fern.go
index 3f279bb..ea92311 100644
--- a/fern.go
+++ b/fern.go
@@ -51,10 +51,9 @@ import (
"ricketyspace.net/fern/config"
"ricketyspace.net/fern/db"
"ricketyspace.net/fern/state"
+ "ricketyspace.net/fern/version"
)
-const version = "0.5.0.dev"
-
var fConf *config.FernConfig
var pState *state.ProcessState
@@ -87,7 +86,7 @@ func init() {
flag.Parse()
if *vFlag {
- fmt.Printf("%s\n", version)
+ fmt.Printf("%s\n", version.Version)
os.Exit(0)
}
if !*rFlag {