gRPCommander is a commandline tool for simplifying sending gRPC commands and receiving responses to a service I am working on. It is built as a wrapper around gRPCurl and requires JSON files to be tailored for the service to configure the gRPC commands.
To run gRPCommander open a terminal and navigate to the project root directory.
cd grpc-commands && python3 gRPCommander.pyList all JSON files loaded by gRPCommander.
ls
List the contents of a loaded site.
ls [site]
Note: All files in grpc-commands/ with prefix AddSite- and postfix .json are loaded at startup by default.
Set a default site from the list of loaded sites
Default [site]
Note: Set a site as the default site at startup to use implied site commands
Load a site from file.
Load [file]...
Stop gRPCommander
Quit
The [site] property can be omitted when sending commands to the default site.
See the Default command to set a default site.
Send an AddSite gRPC command to add a loaded site.
AddSite [site]
Send a RemoveSite gRPC command to remove all site sockets.
RemoveSite [site]
Send a GetSite gRPC query.
GetSite [site]
Send an AddSockets gRPC command to add sockets to a site.
AddSocket [site] [socket]...
Send a UpdateSockets gRPC command.
UpdateSockets [site] [Socket]...
Note: UpdateSockets generates a new topic and a randomized wss.
Send a RemoveSockets gRPC command.
RemoveSockets [site] [SocketName]...
Send a GetSockets gRPC query.
GetSockets [site] [Socket]...