summaryrefslogtreecommitdiff
path: root/build.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-01-27 06:16:58 +0800
committer魏曹先生 <1992414357@qq.com>2026-01-27 06:16:58 +0800
commit2abc5acd25756f3ef6a6ad34f8777ffe241e750d (patch)
treeb312764324b4da037d5b3c46957a77dcd19502f3 /build.rs
parent4eef9ce364bb660421a96052a3fb126a33b22c63 (diff)
Reorganize command modules under a unified cmds directory
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.rs b/build.rs
index 22842ed..07b5c10 100644
--- a/build.rs
+++ b/build.rs
@@ -4,7 +4,7 @@ use std::process::Command;
use string_proc::pascal_case;
-const COMMANDS_PATH: &str = "./src/cmds/";
+const COMMANDS_PATH: &str = "./src/cmds/cmd/";
const COMPILE_INFO_RS_TEMPLATE: &str = "./templates/compile_info.rs.template";
const COMPILE_INFO_RS: &str = "./src/data/compile_info.rs";
@@ -312,7 +312,7 @@ fn generate_cmd_registry_file(repo_root: &PathBuf) -> Result<(), Box<dyn std::er
let key = file_name.to_string();
let node = file_name.replace(".", " ").replace("_", " ");
- let cmd_type = format!("cmds::{}::JV{}Command", file_name, pascal_name);
+ let cmd_type = format!("cmds::cmd::{}::JV{}Command", file_name, pascal_name);
nodes.push(node.clone());
commands.push((key, node, cmd_type));