diff options
| author | Jeff Carr <[email protected]> | 2025-09-17 17:04:53 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-17 17:04:53 -0500 |
| commit | 06bb79b50412ccfd0421cf2c0c6cfe1a0a2d3f5e (patch) | |
| tree | 3a5522c49748648e9ae6547a62e4cb2421f4abc0 /auto.proto | |
| parent | 9f067d592ac6e3190206c6e7232ce95a04e7c25a (diff) | |
use an auto complete PB
Diffstat (limited to 'auto.proto')
| -rw-r--r-- | auto.proto | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/auto.proto b/auto.proto new file mode 100644 index 0000000..82a094d --- /dev/null +++ b/auto.proto @@ -0,0 +1,26 @@ +// Copyright 2025 WIT.COM Inc Licensed GPL 3.0 + +syntax = "proto3"; + +package httppb; + +import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp + +message Auto { + 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 + string cmd = 4; // the cmd being processed. For "git pull <tab>", cmd would be "pull" + repeated string argv = 5; // use this to store whatever you want while the whole POST happens + string arg0 = 6; // what os.Exec() has as os.Argv[0] // not interesting + string arg1 = 7; // should always be "--auto-complete" // not interesting + 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 +} + +message Autos { // `autogenpb:marshal` `autogenpb:mutex` + 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 +} |
