summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-03 11:57:07 -0500
committerJeff Carr <[email protected]>2025-10-03 11:57:07 -0500
commit2d4ba7fdc16e37db63a80e4961289b8b129191ba (patch)
tree24f6632c59d5333d3b7ad45addbe19d310a667bc
parenta2da3b9a08d60d2acecb941c9dd8c9d498555826 (diff)
-rw-r--r--Makefile3
-rw-r--r--argv.go8
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)
}