summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-13 07:28:51 -0500
committerJeff Carr <[email protected]>2025-10-13 07:28:51 -0500
commitd4d06bfb10b4d73d96c80770309124a6d3901e0c (patch)
tree8f307be813b24146594704602ca85f1392329cdc
parent4d4b76fbbcd00578eb4fb951f61ffb6d6de13948 (diff)
oops. wasn't setting start time
-rw-r--r--theMagicOfAutocomplete.go8
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