diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-02-05 22:42:31 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-02-05 22:42:31 +0800 |
| commit | c8cc6b10d4f1280702d50f903e15266dd9785953 (patch) | |
| tree | 4f79d0b285d41626ed29d0c60bb7c5aba8b8ff29 /src/bin | |
| parent | 2f6a755da6e88aeb9b624e2f9bb48e5ff3838f2d (diff) | |
Move vcs module to lib and adjust imports
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/jv.rs | 26 | ||||
| -rw-r--r-- | src/bin/jvv.rs | 12 |
2 files changed, 19 insertions, 19 deletions
diff --git a/src/bin/jv.rs b/src/bin/jv.rs index 9593c9d..c785358 100644 --- a/src/bin/jv.rs +++ b/src/bin/jv.rs @@ -2,19 +2,7 @@ use cli_utils::input::input_with_editor; use colored::Colorize; use just_enough_vcs::{ data::compile_info::CoreCompileInfo, - system::action_system::{action::ActionContext, action_pool::ActionPool}, - utils::{ - cfg_file::config::ConfigFile, - data_struct::data_sort::quick_sort_with_cmp, - sha1_hash, - string_proc::{ - self, - format_path::{format_path, format_path_str}, - snake_case, - }, - tcp_connection::instance::ConnectionInstance, - }, - vcs::{ + lib::{ constants::{ CLIENT_FILE_TODOLIST, CLIENT_FILE_WORKSPACE, CLIENT_FOLDER_WORKSPACE_ROOT_NAME, CLIENT_PATH_WORKSPACE_ROOT, PORT, VAULT_HOST_NAME, @@ -79,6 +67,18 @@ use just_enough_vcs::{ }, }, }, + system::action_system::{action::ActionContext, action_pool::ActionPool}, + utils::{ + cfg_file::config::ConfigFile, + data_struct::data_sort::quick_sort_with_cmp, + sha1_hash, + string_proc::{ + self, + format_path::{format_path, format_path_str}, + snake_case, + }, + tcp_connection::instance::ConnectionInstance, + }, }; use std::{ collections::{BTreeMap, HashMap, HashSet}, diff --git a/src/bin/jvv.rs b/src/bin/jvv.rs index 1fae774..0cac5c3 100644 --- a/src/bin/jvv.rs +++ b/src/bin/jvv.rs @@ -6,11 +6,7 @@ use cli_utils::{ }; use just_enough_vcs::{ data::compile_info::CoreCompileInfo, - utils::{ - cfg_file::config::ConfigFile, - string_proc::{self, pascal_case}, - }, - vcs::{ + lib::{ connection::action_service::server_entry, constants::SERVER_FILE_VAULT, data::{ @@ -19,6 +15,10 @@ use just_enough_vcs::{ }, env::current_vault_path, }, + utils::{ + cfg_file::config::ConfigFile, + string_proc::{self, pascal_case}, + }, }; use just_enough_vcs_cli::data::compile_info::CompileInfo; use log::{error, info}; @@ -402,7 +402,7 @@ async fn jvv_here(_args: HereArgs) { if metadata.is_file() { *total_size += metadata.len(); // Check if file name matches SERVER_NAME_VF_META - if entry.file_name() == just_enough_vcs::vcs::constants::SERVER_NAME_VF_META { + if entry.file_name() == just_enough_vcs::lib::constants::SERVER_NAME_VF_META { *file_count += 1; } } else if metadata.is_dir() { |
