diff options
| author | Jeff Carr <[email protected]> | 2025-10-03 11:57:07 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-03 11:57:07 -0500 |
| commit | 2d4ba7fdc16e37db63a80e4961289b8b129191ba (patch) | |
| tree | 24f6632c59d5333d3b7ad45addbe19d310a667bc | |
| parent | a2da3b9a08d60d2acecb941c9dd8c9d498555826 (diff) | |
| -rw-r--r-- | Makefile | 3 | ||||
| -rw-r--r-- | argv.go | 8 |
2 files changed, 7 insertions, 4 deletions
@@ -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 @@ -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) } |
