From 89093ac8f7af59e06ee4f65812e762dffaadc929 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 17 Sep 2025 20:55:21 -0500 Subject: something fun --- auto.proto | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'auto.proto') diff --git a/auto.proto b/auto.proto index 82a094d..4253c2e 100644 --- a/auto.proto +++ b/auto.proto @@ -5,8 +5,9 @@ syntax = "proto3"; package httppb; import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp +import "google/protobuf/duration.proto"; // for duration -message Auto { +message Auto { // `autogenpb:marshal` `autogenpb:sort` `autogenpb:nomutex` google.protobuf.Timestamp ctime = 1; // when the user tried this autocomplete string argname = 2; // what the shell thinks the name of the executable is string partial = 3; // set to the partial string trying to be matched @@ -17,10 +18,12 @@ message Auto { bool isAuto = 8; // is true if '--auto-complete' is set bool setupAuto = 9; // is true if '--bash' is set // setup bash autocomplete here bool debug = 10; // print debugging info if true + bool newline = 11; // was a newline was sent to STDERR? + google.protobuf.Duration duration = 12; // time since the last autocomplete } -message Autos { // `autogenpb:marshal` `autogenpb:mutex` +message Autos { // `autogenpb:marshal` `autogenpb:sort` `autogenpb:nomutex` string uuid = 1; // `autogenpb:uuid:94210ebf-a534-4b33-aadd-2f5e1f56ae38` string version = 2; // `autogenpb:version:v0.0.1` - repeated Auto auto = 3; // THIS MUST BE HttpRequest and then HttpRequests + repeated Auto autos = 3; // THIS MUST BE HttpRequest and then HttpRequests } -- cgit v1.2.3