Protobuf: protoc: allow using stdin/stdout in FILE/FILES parameters

Created on 10 Jan 2018  路  1Comment  路  Source: protocolbuffers/protobuf

For example, right now I'm doing:

protoc -o/dev/stdout --include_imports test.proto

I am calling protoc from a Go program, so this limitation requires me to either use a temporary file, or hard-code /dev/stdout which is not portable. Both are unnecessarily complex.

I'm not sure what the best way to expose this would be. Some programs use special values, such as - to mean standard input.

enhancement protoc

Most helpful comment

Any updates?

>All comments

Any updates?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TimmKayserHere picture TimmKayserHere  路  3Comments

louwersj picture louwersj  路  4Comments

MikeSilvis picture MikeSilvis  路  3Comments

CooperLuan picture CooperLuan  路  3Comments

tkohlman picture tkohlman  路  3Comments