Description: This CLI tool will allow you to build all of your proto files with one command
All the Pre Built binary are available in the release page
go install github.com/TechMDW/ProtoPort/cmd/proto-port@latest
For more information visit grpc.io
Lang | plugin |
---|---|
Dart | dart pub global activate protoc_plugin |
Go | go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2 |
Go | go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28 |
ProtoPort [command] [options]
Syntax | Description |
---|---|
basic | generate proto files from a local folder |
github | generate proto files from a GitHub repo |
Syntax | Description |
---|---|
-inputs | Path to proto files (if path not specified, it will scan current folder for proto files and generate them with the same folder structure) |
-outputs | Path to output files (if not specified, it will store the file in the current folder and it will preserve the input folder structure) |
-lang | Choose language to generate *[required](go, cpp, csharp, java, kotlin, objc, php, python, pyi, ruby, dart, node) |
Syntax | Description |
---|---|
-inputs | The url to the GitHub repo (if path not specified, it will scan the whole repo for proto files and generate them with the same folder structure) |
-outputs | Path to output files (if not specified, it will store the file in the current folder and it will preserve the input folder structure) |
-pat | GitHub Personal Access Token (only needed if repo is private) |
-lang | Choose language to generate *[required](go, cpp, csharp, java, kotlin, objc, php, python, pyi, ruby, dart, node) |
Will work on this list when I got some free time. If you want to contribute, feel free to do so.
- Compiling proto files.
- Persistent folder structure pawn build.
- Using GitHub as source for protofiles.
- Using Gitlab as source for protofiles.
- Using Bitbucket as source for protofiles.
- Arguments passthrough to protoc.
- Arguments pass through to protoc plugins.
- Auto installing plugins and protoc by default.
- Add binary for windows.
- Add binary for linux.
- Add binary for mac.
If you have questions, concerns, bug reports, etc, please file an issue in this repository's Issue Tracker.
All contributions to this project will be released under the TechMDW AB dedication. By submitting a pull request, or filing a bug, issue, or feature-request you are agreeing to comply with this waiver of copyright interest. Details can be found in our LICENSE.
There are two primary ways to help:
- Using the issue tracker, and
- Changing the code-base.
Use the issue tracker to suggest feature requests, report bugs, and ask questions. This is also a great way to connect with the developers of the project as well as others who are interested in this solution.
Use the issue tracker to find ways to contribute. Find a bug or a feature, mention in the issue that you will take on that effort, then follow the Changing the code-base guidance below.
Generally speaking, you should fork this repository, make changes in your own fork, and then submit a pull-request. All new code should have associated unit tests that validate implemented features and the presence or lack of defects. Additionally, the code should follow any stylistic and architectural guidelines prescribed by the project. In the absence of such guidelines, mimic the styles and patterns in the existing code-base.