https://github.com/xclud/dart_grpcgen
Code generator for gRPC Client from gRPC Reflection.
https://github.com/xclud/dart_grpcgen
code-generator dart flutter grpc grpc-reflection
Last synced: 3 months ago
JSON representation
Code generator for gRPC Client from gRPC Reflection.
- Host: GitHub
- URL: https://github.com/xclud/dart_grpcgen
- Owner: xclud
- License: mit
- Created: 2022-12-06T04:37:21.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-17T16:45:29.000Z (about 2 years ago)
- Last Synced: 2025-04-01T16:57:22.243Z (3 months ago)
- Topics: code-generator, dart, flutter, grpc, grpc-reflection
- Language: Dart
- Homepage: https://pub.dev/packages/grpcgen
- Size: 198 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://pub.dartlang.org/packages/grpcgen)
[](https://pub.dartlang.org/packages/grpcgen/score)
[](https://pub.dartlang.org/packages/grpcgen/score)
[](https://pub.dartlang.org/packages/grpcgen/score)
[](https://pub.dartlang.org/packages/grpcgen)
[](https://github.com/xclud/dart_grpcgen/stargazers)
[](https://github.com/xclud/dart_grpcgen/network/members)
[](https://pub.dartlang.org/packages/grpcgen)Command-line application for code generation for gRPC clients from gRPC Reflection.
## Get Started
Install the latest version of the tool globally, exposing the CLI on the command line:
```bash
dart pub global activate grpcgen
```Usage:
```bash
grpcgen -h https://example.com
```To install the tool as a dev dependency in your current project:
Add `grpcgen` package in your `dev_dependencies`:
```yaml
dev_dependencies:
# dart run grpcgen -h https://example.com
grpcgen: any
```> Note: This package should not be added to `dependencies`.
Usage:
```bash
dart run grpcgen -h https://example.com
```## Usage
```bash
-h, --host= (mandatory) Url to the web server with gRPC Reflection.
-o, --output= Output directory to put the generated files (defaults to "lib/grpc/generated/").
-s, --schema= The schema to use, either v1alpha or v1 (defaults to "v1alpha").
-r, --[no-]reflection If set, reflection code is also generated.
```