command line example

This commit is contained in:
David Renshaw 2014-05-11 11:25:35 -04:00
parent 7895bb8d9b
commit a614141425

View file

@ -2,8 +2,11 @@
This is an experimental pure Java implementation of Cap'n Proto. This is an experimental pure Java implementation of Cap'n Proto.
It doesn't do much yet. To get started, try this:
``` ```
make $ make
$ cd examples
$ echo '(people = [(id = 123, name = "Alice", email = "alice@example.com", employment = (school = "MIT"))])' \
| capnp encode addressbook.capnp AddressBook | java -cp .:.. AddressbookMain read
``` ```