diff options
| author | Jeff Carr <[email protected]> | 2025-10-03 05:07:07 -0500 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-03 05:07:07 -0500 | 
| commit | f3fe0ced8fe38ecf4abb44e7058f988acc4e2c3a (patch) | |
| tree | 6feee625f41d234592e8a73a570528d7750746f1 | |
| parent | f556147358998c4eb11eab8045db96448112a017 (diff) | |
new argv
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | argv.go | 6 | 
2 files changed, 6 insertions, 2 deletions
@@ -1,7 +1,7 @@  .PHONY: build  VERSION = $(shell git describe --tags) -BUILDTIME = $(shell date +%Y.%m.%d) +BUILDTIME = $(shell date +%s)  # create the go.mod and go.sum if this is a brand new repo  REDOMOD = $(shell if [ -e go.sum ]; then  echo go.sum exists; else GO111MODULE= go mod init; GO111MODULE= go mod tidy; fi) @@ -88,11 +88,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", "list", "droplet"})  	} else { -		pb.SubCommand(pb.Argv...) +		pb.SubCommand(pb.Goargs...)  	}  	os.Exit(0)  }  | 
