seamia / protodot

transforming your .proto files into .dot files (and .svg, .png if you happen to have graphviz installed)
BSD 3-Clause "New" or "Revised" License
408 stars 39 forks source link

How to add a target path for output file? #7

Closed ironsuperdev closed 3 years ago

ironsuperdev commented 3 years ago

Hello, I tried with -output option with "home/put/it/here/target", but I got an error.

How to do this? Thanks!

seamia commented 3 years ago

step 1: run protodot -install this will, besides other things, create a copy of config file config.json

step 2: make a copy of config.json, e.g. ironsuperdev.json

step 3: within your config file (ironsuperdev.json) enter desired location of generated files (under "locations" and "generated")

step 4: run protodot as before, but add the following parameters: -config ironsuperdev.json