diff options
| -rw-r--r-- | theMagicOfAutocomplete.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/theMagicOfAutocomplete.go b/theMagicOfAutocomplete.go index 19be66a..942bd24 100644 --- a/theMagicOfAutocomplete.go +++ b/theMagicOfAutocomplete.go @@ -26,6 +26,10 @@ func Autocomplete(dest any) *Auto { } pb := parseArgv(myAuto.appName) // parses os.Args into a protobuf + // set the start time of the binary + now := time.Now() + pb.Ctime = timestamppb.New(now) + // try to register bash args for go-args arg.Register(&argBash) arg.Register(&argGui) @@ -53,10 +57,6 @@ func Autocomplete(dest any) *Auto { // EVERYTHING PAST HERE IS FOR AUTOCOMPLETE // everything sent to STDOUT and STDERR matters past this point - // set the start time of the binary - now := time.Now() - pb.Ctime = timestamppb.New(now) - // set the duration since the last auto complete // find the last entry. this is dumb way to do it var last *Auto |
