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

example on how to handle shell expansion of a * char in protos path with container image #467

Open
hellt opened this issue Nov 1, 2021 · 0 comments

Comments

@hellt
Copy link

hellt commented Nov 1, 2021

The readme mentions:

NOTE: Due to the way wildcard expansion works with docker you cannot use a wildcard path (e.g. protos/.proto) in the file list. To get around this, if no files are passed, the container will generate docs for protos/.proto, which can be changed by mounting different volumes.

Although to overcome this limitation, the provided container can be used as such:

docker run --rm \
  -v $(pwd)/doc:/out \
  -v $(pwd):/protos \
  --entrypoint '' \
  pseudomuto/protoc-gen-doc \
  bash -c "protoc -I /protos --doc_out=/out /protos/ndk/*.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

No branches or pull requests

1 participant