From 3fa56b997b44caba630a5dbc67687923978c5c7d Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sat, 24 Jan 2026 07:03:40 +0800 Subject: Add command aliases, error handling improvements, and flag aliases - Add aliases for status command: sign, sheet, sheet.add, drop, drop.cat - Improve error handling with detailed localized messages for prepare, execute, and render phases - Add flag aliases: -L for --lang and -R for --renderer - Implement similar command suggestions using Levenshtein distance - Fix command matching logic to avoid ambiguous prefix issues --- .cargo/registry.toml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to '.cargo') diff --git a/.cargo/registry.toml b/.cargo/registry.toml index 3ebfa17..a957b9b 100644 --- a/.cargo/registry.toml +++ b/.cargo/registry.toml @@ -9,6 +9,26 @@ # node = "name" # type = "your_command::JVUnknownCommand" +[cmd.sign] +node = "sign" +type = "cmds::status::JVStatusCommand" + +[cmd.sheet] +node = "sheet" +type = "cmds::status::JVStatusCommand" + +[cmd.sheet_add] +node = "sheet.add" +type = "cmds::status::JVStatusCommand" + +[cmd.drop] +node = "drop" +type = "cmds::status::JVStatusCommand" + +[cmd.drop_cat] +node = "drop.cat" +type = "cmds::status::JVStatusCommand" + ################# ### Renderers ### ################# -- cgit