summaryrefslogtreecommitdiff
path: root/crates/vcs_data
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2025-11-17 20:30:19 +0800
committer魏曹先生 <1992414357@qq.com>2025-11-17 20:30:19 +0800
commit85446f9f7dd491d7e09519817af9f84b73132354 (patch)
tree7d331d45315b2432b1d55dffa6fdcb975a612d37 /crates/vcs_data
parent5734fa8140363a602400f16a79b7cbaf504e01c0 (diff)
Change sheet file format from JSON to TOML
Update file extension constants for local sheets, cached sheets, and member held files from .json to .toml. Also consolidate wrong file constants to use consistent .json extension.
Diffstat (limited to 'crates/vcs_data')
-rw-r--r--crates/vcs_data/src/constants.rs15
1 files changed, 8 insertions, 7 deletions
diff --git a/crates/vcs_data/src/constants.rs b/crates/vcs_data/src/constants.rs
index 47a77bd..01344de 100644
--- a/crates/vcs_data/src/constants.rs
+++ b/crates/vcs_data/src/constants.rs
@@ -51,17 +51,18 @@ pub const CLIENT_FILE_WORKSPACE: &str = "./.jv/workspace.toml";
pub const CLIENT_FILE_LATEST_INFO: &str = "./.jv/.{account}_latest.json";
// Client - Local
-pub const CLIENT_SUFFIX_LOCAL_SHEET_FILE: &str = ".json";
-pub const CLIENT_SUFFIX_CACHED_SHEET_FILE: &str = ".json";
+pub const CLIENT_SUFFIX_LOCAL_SHEET_FILE: &str = ".toml";
+pub const CLIENT_SUFFIX_CACHED_SHEET_FILE: &str = ".toml";
pub const CLIENT_PATH_LOCAL_DRAFT: &str = "./.jv/drafts/{account}/{sheet_name}/";
pub const CLIENT_PATH_LOCAL_SHEET: &str = "./.jv/local/";
pub const CLIENT_PATH_CACHED_SHEET: &str = "./.jv/cached/";
-pub const CLIENT_FILE_LOCAL_SHEET: &str = "./.jv/local/{account}/{sheet_name}.json";
-pub const CLIENT_FILE_CACHED_SHEET: &str = "./.jv/cached/{sheet_name}.json";
-pub const CLIENT_FILE_MEMBER_HELD: &str = "./.jv/helds/{account}.json";
+pub const CLIENT_FILE_LOCAL_SHEET: &str = "./.jv/local/{account}/{sheet_name}.toml";
+pub const CLIENT_FILE_CACHED_SHEET: &str = "./.jv/cached/{sheet_name}.toml";
+pub const CLIENT_FILE_MEMBER_HELD: &str = "./.jv/helds/{account}.toml";
-pub const CLIENT_FILE_LOCAL_SHEET_NOSET: &str = "./.jv/.temp/wrong_local_sheet.toml";
-pub const CLIENT_FILE_MEMBER_HELD_NOSET: &str = "./.jv/.temp/wrong_member_held.toml";
+pub const CLIENT_FILE_LOCAL_SHEET_NOSET: &str = "./.jv/.temp/wrong.json";
+pub const CLIENT_FILE_MEMBER_HELD_NOSET: &str = "./.jv/.temp/wrong.json";
+pub const CLIENT_FILE_LATEST_INFO_NOSET: &str = "./.jv/.temp/wrong.json";
// Client - Other
pub const CLIENT_FILE_IGNOREFILES: &str = "IGNORE_RULES.toml";