A good time to finally release a stable version

Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>

git-svn-id: file:///srv/svn/repo/aya/trunk@80 cec141ff-132a-4243-88a5-ce187bd62f94
This commit is contained in:
yakumo.izuru
2023-12-12 14:09:17 +00:00
parent f3a588d5a2
commit 84639561e6
12 changed files with 301 additions and 247 deletions

View File

@@ -3,19 +3,21 @@ package aya
import (
"fmt"
"time"
)
var (
// Set to current tag
Version = "v0.7.0"
Time = time.Now()
// Variables set at build-time
Date string
Vendor string
Version string
)
// FullVersion display the full version and build
func FullVersion() string {
d := Time.Day()
m := Time.Month()
y := Time.Year()
return fmt.Sprintf("%v || %d.%d.%d", Version, y, m, d)
// PrintVersion only displays the obvious
func PrintVersion() string {
return fmt.Sprintf("%s", Version)
}
// PrintFullVersion display the full version and build
func PrintFullVersion() string {
return fmt.Sprintf("%s, built at %s, on %s", Version, Date, Vendor)
}