From 2d4ba7fdc16e37db63a80e4961289b8b129191ba Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 3 Oct 2025 11:57:07 -0500 Subject: new --version --- Makefile | 3 +-- argv.go | 8 ++++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 3aa4117..2bc55ef 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,5 @@ VERSION = $(shell git describe --tags) -GUIVERSION = $(shell git describe --tags) -BUILDTIME = $(shell date +%Y.%m.%d) +BUILDTIME = $(shell date +%s) all: block.pb.go verbose # -fixup --gui-check-plugin ../../../toolkits/gocui/gocui.so diff --git a/argv.go b/argv.go index b79aaeb..ac5e3eb 100644 --- a/argv.go +++ b/argv.go @@ -49,11 +49,15 @@ func (args) Appname() string { return ARGNAME } +func (args) Buildtime() (string, string) { + return BUILDTIME, VERSION +} + func (a args) DoAutoComplete(pb *prep.Auto) { if pb.Cmd == "" { - pb.Autocomplete3([]string{"drives", "gui"}) + pb.Autocomplete3([]string{"drives", "gui", "--version"}) } else { - pb.SubCommand(pb.Argv...) + pb.SubCommand(pb.Goargs...) } os.Exit(0) } -- cgit v1.2.3