diff options
| author | Jeff Carr <[email protected]> | 2025-10-03 11:26:42 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-03 11:26:42 -0500 |
| commit | a5d97f935848e21130bf8f1c63d366f79f5f9a5e (patch) | |
| tree | d33f46fbdd3071c341c88cd70b62e49ac6e88a70 | |
| parent | d39cf6292236545524f3226d58b2fcf765f8972c (diff) | |
fix --versionv0.5.15
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | argv.go | 8 |
2 files changed, 7 insertions, 3 deletions
@@ -1,5 +1,5 @@ VERSION = $(shell git describe --tags) -BUILDTIME = $(shell date +%Y.%m.%d_%H%M) +BUILDTIME = $(shell date +%s) simple: test # make -C example clean simpleMutexGlobal goimports vet @@ -63,11 +63,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{"--bash", "--proto", "--regret", "--debug", "--delete", "--dry-run"}) + pb.Autocomplete3([]string{"--bash", "--proto", "--regret", "--debug", "--delete", "--dry-run", "--version"}) } else { - pb.SubCommand(pb.Argv...) + pb.SubCommand(pb.Goargs...) } os.Exit(0) } |
