diff options
| author | Jeff Carr <[email protected]> | 2025-10-03 11:57:13 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-03 11:57:13 -0500 |
| commit | 5452bed6607e8dbddfb3e352663402c07c6237dd (patch) | |
| tree | 54f38fbc1dd5f9f2d433a1acca938b7dc0dc5d44 | |
| parent | 7bf204299f01a0739c435d3768277c279c6291d3 (diff) | |
new --versionv0.0.29
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | argv.go | 8 |
2 files changed, 7 insertions, 3 deletions
@@ -1,7 +1,7 @@ .PHONY: build VERSION = $(shell git describe --tags) -BUILDTIME = $(shell date +%Y.%m.%d) +BUILDTIME = $(shell date +%s) default: placement.pb.go install @@ -51,11 +51,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{"--restore", "save", "dump", "dumpx", "list"}) + pb.Autocomplete3([]string{"--restore", "save", "dump", "dumpx", "list", "--version"}) } else { - pb.SubCommand(pb.Argv...) + pb.SubCommand(pb.Goargs...) } os.Exit(0) } |
