.grpc
Onesimus extension
Toggle gRPC mode.
Synopsis
.grpc [on | off] [format=<json|text>] [compact=<yes|no>]
Words without brackets are required, [ ] marks optional parts, a | b alternatives, ... a repeatable argument and [,...] a comma separated list.
Description
Switches the console connection to the gRPC message format, or shows its state.
Arguments
| Argument | Type | Values / source | Default | Flags | Description |
|---|---|---|---|---|---|
on | keyword | one of: switch | Switch on. | ||
off | keyword | one of: switch | Switch off. | ||
format= | enum | json, text | Output format. | ||
compact= | bool | yes, no | Compact JSON. |
Examples
The state of the session and whether the gRPC service is enabled:
.grpc
Switch to gRPC mode with compact JSON:
.grpc on compact=yes
Return to the API mode used before .grpc on:
.grpc off