ls-proto-deps is a CLI tool to list dependencies of .proto
files.
./ls-proto-deps -baseDir protodir foo.proto bar.proto
with docker:
docker run -t --rm -v /path/to/protodir:/protodir ghcr.io/neglect-yp/ls-proto-deps ./ls-proto-deps -baseDir protodir foo.proto