Skip to main content

Module schema_cli

Module schema_cli 

Source
Expand description

Schema-driven CLI command builder and dispatcher.

Builds clap Command objects at runtime from MethodSchema metadata (generated by hyprstream-rpc-derive from Cap’n Proto schemas) and dispatches invocations to the appropriate service client’s call_method().

Structs§

MethodView
Portable view of a method schema, extracted from any generated MethodSchema.
ParamView

Traits§

MethodSchemaLike
Trait to abstract over the structurally identical but distinct MethodSchema types generated by each service’s proc macro invocation.
ParamSchemaLike

Functions§

build_tool_command
Build the tool command containing all schema-driven service subcommands.
format_response
Format a JSON value as a human-readable string for CLI output.
handle_schema_command
Dispatch a schema-driven CLI command based on matched subcommands.
handle_tool_command
Handle a tool subcommand by extracting the service name and delegating.