summaryrefslogtreecommitdiff
path: root/internal/flags/version.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-04-14 23:13:45 +0300
committerPaul Buetow <paul@buetow.org>2025-04-14 23:13:45 +0300
commit12759c56082abcc6b0eb70b5a5981e9ca61faa08 (patch)
tree241f588fdd0e38f2d7c1faf79920ffe01b472122 /internal/flags/version.go
parentf4c34929bedfb2c5b8fa32f16344200c72415cb9 (diff)
add -version flag and ASCII banner
Diffstat (limited to 'internal/flags/version.go')
-rw-r--r--internal/flags/version.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/internal/flags/version.go b/internal/flags/version.go
new file mode 100644
index 0000000..1cb2dfd
--- /dev/null
+++ b/internal/flags/version.go
@@ -0,0 +1,13 @@
+package flags
+
+const version = `v0.0.0`
+
+const asciiBanner = ` ___   _____    ___ _     _   
+|_ _| / / _ \  | _ (_)___| |_ 
+ | | / / (_) | |   / / _ \  _|
+|___/_/ \___/  |_|_\_\___/\__| NG
+ ` + version
+
+func PrintVersion() {
+ println(asciiBanner)
+}