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/systems/cmd/cmd_system.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/systems/cmd/cmd_system.rs') diff --git a/src/systems/cmd/cmd_system.rs b/src/systems/cmd/cmd_system.rs index 3ae4d5e..7272c9e 100644 --- a/src/systems/cmd/cmd_system.rs +++ b/src/systems/cmd/cmd_system.rs @@ -9,11 +9,13 @@ use crate::{ }, }; use std::{ - any::{Any, TypeId, type_name}, + any::{TypeId, type_name}, collections::HashMap, future::Future, }; +pub type AnyOutput = (Box, TypeId); + pub struct JVCommandContext { pub help: bool, pub confirmed: bool, @@ -93,8 +95,7 @@ where fn process( args: Vec, ctx: JVCommandContext, - ) -> impl Future, TypeId), CmdProcessError>> + Send - { + ) -> impl Future> + Send { async move { let mut full_args = vec!["jv".to_string()]; @@ -173,7 +174,7 @@ where fn exec( input: Input, collect: Collect, - ) -> impl Future, TypeId), CmdExecuteError>> + Send; + ) -> impl Future> + Send; /// Get output type mapping fn get_output_type_mapping() -> HashMap; -- cgit