summaryrefslogtreecommitdiff
path: root/internal/flags/version.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-21 10:25:39 +0200
committerPaul Buetow <paul@buetow.org>2026-02-21 10:25:39 +0200
commit32136b8cb18944157ff1f361bc0755f6b627fd47 (patch)
treee778661fb464bd53eb81263562bb8bd7b1aa79de /internal/flags/version.go
parentb3ef6e1b8b8ad5e05d8fd78c9cb1379f56eef854 (diff)
Align Go project structure and add Mage targets
Amp-Thread-ID: https://ampcode.com/threads/T-019c7f3b-1326-767b-94d5-366b91eaf712 Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'internal/flags/version.go')
-rw-r--r--internal/flags/version.go18
1 files changed, 11 insertions, 7 deletions
diff --git a/internal/flags/version.go b/internal/flags/version.go
index 1cb2dfd..7e6c50e 100644
--- a/internal/flags/version.go
+++ b/internal/flags/version.go
@@ -1,13 +1,17 @@
package flags
-const version = `v0.0.0`
+import "fmt"
-const asciiBanner = ` ___   _____    ___ _     _   
-|_ _| / / _ \  | _ (_)___| |_ 
- | | / / (_) | |   / / _ \  _|
-|___/_/ \___/  |_|_\_\___/\__| NG
- ` + version
+// Version is the current application version.
+const Version = "v0.0.0"
+const asciiBannerTemplate = ` ___ _____ ___ _ _
+|_ _| / / _ \ | _ (_)___| |_
+ | | / / (_) | | / / _ \ _|
+|___/_/ \___/ |_|_\_\___/\__| NG
+ %s`
+
+// PrintVersion prints the banner with the current version.
func PrintVersion() {
- println(asciiBanner)
+ fmt.Printf(asciiBannerTemplate+"\n", Version)
}