A Protobuf parser, encoder and decoder in Bash.
You'll need protoc
for running some of the test scripts, but of course
you can use the library without it.
All you need to do is clone the repository:
git clone https://github.com/lafkpages/protobuf-parser-bash.git
cd protobuf-parser-bash
Or, use bpkg to install it:
bpkg install lafkpages/protobuf-parser-bash
Then, to lex and parse a .proto
file, run:
./src/schema/protobuf-schema-main.sh <path-to-proto-file>
You can try it with the test/example.proto
file:
./src/schema/protobuf-schema-main.sh test/example.proto