Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 13 days 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 (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-17T16:45:29.000Z (over 1 year ago)
- Last Synced: 2024-10-10T03:04:59.301Z (about 1 month 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
[![pub package](https://img.shields.io/pub/v/grpcgen)](https://pub.dartlang.org/packages/grpcgen)
[![likes](https://img.shields.io/pub/likes/grpcgen)](https://pub.dartlang.org/packages/grpcgen/score)
[![points](https://img.shields.io/pub/points/grpcgen)](https://pub.dartlang.org/packages/grpcgen/score)
[![popularity](https://img.shields.io/pub/popularity/grpcgen)](https://pub.dartlang.org/packages/grpcgen/score)
[![license](https://img.shields.io/github/license/xclud/dart_grpcgen)](https://pub.dartlang.org/packages/grpcgen)
[![stars](https://img.shields.io/github/stars/xclud/dart_grpcgen)](https://github.com/xclud/dart_grpcgen/stargazers)
[![forks](https://img.shields.io/github/forks/xclud/dart_grpcgen)](https://github.com/xclud/dart_grpcgen/network/members)
[![sdk version](https://badgen.net/pub/sdk-version/grpcgen)](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.
```