Skip to content

Latest commit

 

History

History
71 lines (50 loc) · 1.79 KB

README.md

File metadata and controls

71 lines (50 loc) · 1.79 KB

proto-contrib

Packages and tools on top of https://github.com/emicklei/proto

usage of protofmt command

> protofmt -help
	Usage of protofmt [flags] [path ...]
	-w	write result to (source) files instead of stdout

See folder cmd/protofmt/README.md for more details.

usage of proto2xsd command

> proto2xsd -help
	Usage of proto2xsd [flags] [path ...]
	-ns string
		namespace of the target types (default "http://your.company.com/domain/version")

See folder cmd/proto2xsd/README.md for more details.

usage of proto2gql command

> proto2gql -help
    Usage of proto2gql [flags] [path ...]

    -filter string
        Regexp to filter out matched types
    -filterN string
        Regexp to filter out not matched types
    -go_out string
        Writes transformed files to .go file
    -js_out string
        Writes transformed files to .js file
    -no_prefix
        Disables package prefix for type names
    -package_alias value
        Renames packages using given aliases
    -resolve_import value
        Resolves given external packages
    -std_out
        Writes transformed files to stdout
    -txt_out string
        Writes transformed files to .graphql file

See folder cmd/proto2gql/README.md for more details.

usage of protodep command

> 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

See README.md

usage of proto2avro command

proto2avro [filename].proto [message]

usage of protocompose command

See README.md

usage of proto2openapi command

WORK in progress