Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 716 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 716 Bytes

protobuf-parser-bash

A Protobuf parser, encoder and decoder in Bash.

Install

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

Usage

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