Skip to content

RPC command --help could give a list of fields and types #16

@anzboi

Description

@anzboi

For discovery and help purposes, it would help to give more information through the --help command on Services and their RPCs

Services and RPCs can return their docstring as found in the proto files, while RPCs could additionally return a list of request fields and their types.

Examples

Service

$ grpctl {Service} --help
path.to.Service (path/to/file.proto)

Docstring

Available Commands:
...

Flags:
...

Global Flags:
...

Method

$ grpctl {Service} {RPC} --help
path.to.Service/RPC (path/to/file.proto)

Docstring

Request:
[num] field_name - Type

Flags:
...

Global Flags:
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions