diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-01-27 06:16:58 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-01-27 06:16:58 +0800 |
| commit | 2abc5acd25756f3ef6a6ad34f8777ffe241e750d (patch) | |
| tree | b312764324b4da037d5b3c46957a77dcd19502f3 /build.rs | |
| parent | 4eef9ce364bb660421a96052a3fb126a33b22c63 (diff) | |
Reorganize command modules under a unified cmds directory
Diffstat (limited to 'build.rs')
| -rw-r--r-- | build.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)); |
