summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-03 11:27:17 -0500
committerJeff Carr <[email protected]>2025-10-03 11:27:17 -0500
commit4ddd5e7bda276d60c1ce57297dc73ef653ed2686 (patch)
tree30ac9ba8cf0a0fb71d1a3e32307e03fc7d7e911b
parentbb99305225210181525b1482888a7bfddd9ff68e (diff)
new --versionv0.0.85
-rw-r--r--Makefile2
-rw-r--r--argv.go8
2 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index c2eb5a9..7414108 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
.PHONY: build
VERSION = $(shell git describe --tags)
-BUILDTIME = $(shell date +%Y.%m.%d_%H%M)
+BUILDTIME = $(shell date +%s)
# create the go.mod and go.sum if this is a brand new repo
# REDOMOD = $(shell if [ -e go.mod ]; then echo go.mod; else echo no go mod; fi)
diff --git a/argv.go b/argv.go
index a29adb9..2277d6e 100644
--- a/argv.go
+++ b/argv.go
@@ -71,11 +71,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{"gui", "list", "--daemon"})
+ pb.Autocomplete3([]string{"gui", "list", "--daemon", "--version"})
} else {
- pb.SubCommand(pb.Argv...)
+ pb.SubCommand(pb.Goargs...)
}
os.Exit(0)
}