From 0a6b6c1d213e19c7649e343c2a77f3399feb8016 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 15 Mar 2026 22:57:36 +0800 Subject: Add build system rerun triggers and refactor command system --- src/cmds/cmd/version.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/cmds/cmd/version.rs') diff --git a/src/cmds/cmd/version.rs b/src/cmds/cmd/version.rs index 7a2e45b..2e5d8b6 100644 --- a/src/cmds/cmd/version.rs +++ b/src/cmds/cmd/version.rs @@ -8,7 +8,7 @@ use crate::{ data::compile_info::CompileInfo, systems::{ cmd::{ - cmd_system::JVCommandContext, + cmd_system::{AnyOutput, JVCommandContext}, errors::{CmdExecuteError, CmdPrepareError}, }, helpdoc::helpdoc_viewer, @@ -16,7 +16,6 @@ use crate::{ }; use cmd_system_macros::exec; use just_enough_vcs::data::compile_info::CoreCompileInfo; -use std::any::TypeId; pub struct JVVersionCommand; type Cmd = JVVersionCommand; @@ -44,10 +43,7 @@ async fn collect(_args: &Arg, _ctx: &JVCommandContext) -> Result Result<(Box, TypeId), CmdExecuteError> { +async fn exec(input: In, collect: Collect) -> Result { let output = JVVersionInputOutputConverter::merge_to_output(input, collect); cmd_output!(JVVersionOutput => output) } -- cgit