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§
- Method
View - Portable view of a method schema, extracted from any generated MethodSchema.
- Param
View
Traits§
- Method
Schema Like - Trait to abstract over the structurally identical but distinct
MethodSchematypes generated by each service’s proc macro invocation. - Param
Schema Like
Functions§
- build_
tool_ command - Build the
toolcommand 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
toolsubcommand by extracting the service name and delegating.