mirror of
https://github.com/Start9Labs/rpc-toolkit.git
synced 2026-03-30 12:21:58 +00:00
wip: Fixed with it compiling
This commit is contained in:
@@ -115,18 +115,18 @@ fn make_api() -> ParentHandler {
|
|||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.subcommand("a_hello", from_fn_async(a_hello))
|
.subcommand("a_hello", from_fn_async(a_hello))
|
||||||
// .subcommand_with_inherited(
|
.subcommand(
|
||||||
// "inherited",
|
"dondes",
|
||||||
// ParentHandler::<NoParams, NoParams>::new().subcommand_no_cli(
|
ParentHandler::<InheritParams>::new().subcommand_with_inherited_no_cli(
|
||||||
// "echo_no_cli",
|
"donde",
|
||||||
// from_fn(|c: CliContext| {
|
from_fn(|c: CliContext, _: (), donde| {
|
||||||
// Ok::<_, RpcError>(
|
Ok::<_, RpcError>(
|
||||||
// format!("Subcommand No Cli: Host {host}", host = c.host()).to_string(),
|
format!("Subcommand No Cli: Host {host}", host = c.host()).to_string(),
|
||||||
// )
|
)
|
||||||
// }),
|
}),
|
||||||
// ),
|
|InheritParams { donde }, _| donde,
|
||||||
// |InheritParams { donde }, _| InheritParams { donde },
|
),
|
||||||
// )
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn internal_error(e: impl Display) -> RpcError {
|
pub fn internal_error(e: impl Display) -> RpcError {
|
||||||
|
|||||||
Reference in New Issue
Block a user