summaryrefslogtreecommitdiff
path: root/src/cmds/cmd/hexdump.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-03-15 22:57:36 +0800
committer魏曹先生 <1992414357@qq.com>2026-03-15 22:57:36 +0800
commit0a6b6c1d213e19c7649e343c2a77f3399feb8016 (patch)
tree9c2e0fbf51a1f6e80f5a623ad094be2b62782607 /src/cmds/cmd/hexdump.rs
parent71145f72947033bbc5125e14ea89f8d68c189da4 (diff)
Add build system rerun triggers and refactor command system
Diffstat (limited to 'src/cmds/cmd/hexdump.rs')
-rw-r--r--src/cmds/cmd/hexdump.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/cmds/cmd/hexdump.rs b/src/cmds/cmd/hexdump.rs
index 928b626..346fffe 100644
--- a/src/cmds/cmd/hexdump.rs
+++ b/src/cmds/cmd/hexdump.rs
@@ -1,5 +1,3 @@
-use std::any::TypeId;
-
use crate::{
cmd_output,
cmds::{
@@ -8,7 +6,7 @@ use crate::{
},
systems::{
cmd::{
- cmd_system::JVCommandContext,
+ cmd_system::{AnyOutput, JVCommandContext},
errors::{CmdExecuteError, CmdPrepareError},
},
helpdoc::helpdoc_viewer,
@@ -39,10 +37,7 @@ async fn collect(args: &Arg, _ctx: &JVCommandContext) -> Result<Collect, CmdPrep
}
#[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> {
let output = JVHexOutput { data: collect.data };
cmd_output!(JVHexOutput => output)
}