From 9d812580557cdc343378816cd65678b8aa75d944 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Thu, 12 Mar 2026 15:54:59 +0800 Subject: Add lang field to command context and reorganize utils modules --- src/bin/jvn.rs | 1 + src/cmds/cmd/sheetedit.rs | 5 ++--- src/systems/cmd/cmd_system.rs | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/bin/jvn.rs b/src/bin/jvn.rs index f45c78b..3a95a45 100644 --- a/src/bin/jvn.rs +++ b/src/bin/jvn.rs @@ -114,6 +114,7 @@ async fn main() { help, confirmed, args: args.clone(), + lang, }, renderer_override, ); diff --git a/src/cmds/cmd/sheetedit.rs b/src/cmds/cmd/sheetedit.rs index 74b0bbe..2dfbbfb 100644 --- a/src/cmds/cmd/sheetedit.rs +++ b/src/cmds/cmd/sheetedit.rs @@ -10,9 +10,8 @@ use crate::{ }, }; use cli_utils::{ - display::table::Table, - legacy::{env::get_default_editor, input::input_with_editor_cutsom}, - string_vec, + display::table::Table, env::editor::get_default_editor, + input::editor::input_with_editor_cutsom, string_vec, }; use cmd_system_macros::exec; use just_enough_vcs::system::sheet_system::{mapping::LocalMapping, sheet::SheetData}; diff --git a/src/systems/cmd/cmd_system.rs b/src/systems/cmd/cmd_system.rs index 05fe5e7..67f5c7f 100644 --- a/src/systems/cmd/cmd_system.rs +++ b/src/systems/cmd/cmd_system.rs @@ -18,6 +18,7 @@ pub struct JVCommandContext { pub help: bool, pub confirmed: bool, pub args: Vec, + pub lang: String, } pub trait JVCommand -- cgit