protodep

command
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2023 License: MIT Imports: 6 Imported by: 0

README

protodep

For a given proto file, report all the required filenames recursively.

$ protodep v1/myservice.proto

v1/myservice.proto
v1/shared.proto
google/api/annotations.proto
google/api/http.proto
google/protobuf/descriptor.proto
google/protobuf/timestamp.proto

It is also possible to add multiple proto files

$ protodep v1/myservice.proto v1/myotherservice.proto

v1/myservice.proto
v1/shared.proto
google/api/annotations.proto
google/api/http.proto
google/protobuf/descriptor.proto
google/protobuf/timestamp.proto
v1/myotherservice.proto
v1/othershared.proto

Use the format flag to get JSON output

$ protodep -format json v1/myservice.proto v1/myotherservice.proto

["v1/myservice.proto", "v1/shared.proto", ...]

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL