From d19e5d84ee21502fd3440511d4ffb1ee1f49d3b2 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 4 Feb 2026 00:27:16 +0800 Subject: Refactor build system and implement complete renderer system - Split monolithic build.rs into modular async generators - Add renderer override system with type-safe dispatch - Implement command template macro for consistent command definitions - Add proc-macro crates for command and renderer systems - Reorganize directory structure for better separation of concerns - Update documentation to reflect new architecture --- src/bin/jvn.rs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'src/bin/jvn.rs') diff --git a/src/bin/jvn.rs b/src/bin/jvn.rs index 598be3d..1dbc517 100644 --- a/src/bin/jvn.rs +++ b/src/bin/jvn.rs @@ -3,7 +3,7 @@ use std::process::exit; use cli_utils::display::md; use cli_utils::env::current_locales; use cli_utils::levenshtein_distance::levenshtein_distance; -use just_enough_vcs_cli::systems::cmd::_registry::jv_cmd_nodes; +use just_enough_vcs_cli::systems::cmd::_commands::jv_cmd_nodes; use just_enough_vcs_cli::systems::cmd::cmd_system::JVCommandContext; use just_enough_vcs_cli::systems::cmd::errors::{CmdExecuteError, CmdPrepareError, CmdRenderError}; use just_enough_vcs_cli::systems::cmd::{errors::CmdProcessError, processer::jv_cmd_process}; @@ -120,6 +120,15 @@ async fn main() { eprintln!("{}", help) } } + CmdProcessError::RendererOverrideButRequestHelp => { + eprintln!( + "{}", + md(t!("process_error.renderer_override_but_request_help")) + ); + } + CmdProcessError::DowncastFailed => { + eprintln!("{}", md(t!("process_error.downcast_failed"))); + } } } std::process::exit(1); @@ -253,5 +262,11 @@ fn handle_render_error(cmd_render_error: CmdRenderError) { )) ); } + CmdRenderError::TypeMismatch { + expected: _, + actual: _, + } => { + eprintln!("{}", md(t!("render_error.type_mismatch"))); + } } } -- cgit