Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

protoc-gen-elm: don't print input by default #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pschultz
Copy link

@pschultz pschultz commented Mar 6, 2019

I was taking protoc-gen-elm for a test-drive, and so far it's looking really good. Thank you very much for your work.

When generating elm code for an existing project, protoc-gen-elm printed thousands(!) of lines of what appears to be debug output, making the output from other protoc plugins completely invisible.

With this PR protoc-gen-elm no longer prints a text representation of the proto input
by default. To print the text representation, set the debug option:

protoc --elm_out=debug:. *.proto

Support for options is new. Even though debug is the only recognized
option for now, for future expansion we follow the convention of most
other protoc plugins by accepting a comma separated list of key=value
pairs (with optional value part).

protoc --elm_out=p1=v1,p2=v2,p3:. *.proto

protoc-gen-elm no longer prints a text representation of the proto input
by default. To print the text representation, set the `debug` option:

    protoc --elm_out=debug:. *.proto

Support for options is new. Even though `debug` is the only recognized
option for now, for future expansion we follow the convention of most
other protoc plugins by accepting a comma separated list of key=value
pairs (with optional value part).

    protoc --elm_out=p1=v1,p2=v2,p3:. *.proto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant