diff options
Diffstat (limited to 'src/cmds/cmd/helpdoc.rs')
| -rw-r--r-- | src/cmds/cmd/helpdoc.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/cmds/cmd/helpdoc.rs b/src/cmds/cmd/helpdoc.rs index 98e0309..74f4c7e 100644 --- a/src/cmds/cmd/helpdoc.rs +++ b/src/cmds/cmd/helpdoc.rs @@ -6,14 +6,13 @@ use crate::{ }, systems::{ cmd::{ - cmd_system::JVCommandContext, + cmd_system::{AnyOutput, JVCommandContext}, errors::{CmdExecuteError, CmdPrepareError}, }, helpdoc::{DEFAULT_HELPDOC, helpdoc_viewer}, }, }; use cmd_system_macros::exec; -use std::any::TypeId; pub struct JVHelpdocCommand; type Cmd = JVHelpdocCommand; @@ -38,10 +37,7 @@ async fn collect(_args: &Arg, _ctx: &JVCommandContext) -> Result<Collect, CmdPre } #[exec] -async fn exec( - input: In, - _collect: Collect, -) -> Result<(Box<dyn std::any::Any + Send + 'static>, TypeId), CmdExecuteError> { +async fn exec(input: In, _collect: Collect) -> Result<AnyOutput, CmdExecuteError> { helpdoc_viewer::display_with_lang(&input.name.as_str(), &input.lang.as_str()).await; cmd_output!(JVNoneOutput => JVNoneOutput) } |
