summaryrefslogtreecommitdiff
path: root/src/inputs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-01-24 03:10:41 +0800
committer魏曹先生 <1992414357@qq.com>2026-01-24 03:10:41 +0800
commit49b9037168fb5b6c8deb7ab06abbfd6f54ebc798 (patch)
tree0f5b7c6ce67f2561b2e00da4331df09f476345d4 /src/inputs
parentf9fa7d65d775959efbc9609ccafd1fdce76129e4 (diff)
Split prepare phase into prepare and collect
- Prepare now handles argument-to-input conversion only - Collect handles resource gathering and data collection - Status command updated to use new two-phase structure - Command system trait modified to support separate phases
Diffstat (limited to 'src/inputs')
-rw-r--r--src/inputs/status.rs44
1 files changed, 1 insertions, 43 deletions
diff --git a/src/inputs/status.rs b/src/inputs/status.rs
index eb3b504..859ccd2 100644
--- a/src/inputs/status.rs
+++ b/src/inputs/status.rs
@@ -1,43 +1 @@
-use std::{collections::HashMap, time::SystemTime};
-
-use just_enough_vcs::vcs::data::{
- local::{
- latest_file_data::LatestFileData,
- local_sheet::LocalSheetData,
- workspace_analyzer::{AnalyzeResultPure, ModifiedRelativePathBuf},
- },
- member::MemberId,
- sheet::SheetName,
-};
-
-use crate::outputs::status::JVStatusWrongModifyReason;
-
-pub struct JVStatusInput {
- pub current_account: MemberId,
- pub current_sheet: SheetName,
- pub is_host_mode: bool,
- pub in_ref_sheet: bool,
- pub analyzed_result: AnalyzeResultPure,
- pub latest_file_data: LatestFileData,
- pub local_sheet_data: LocalSheetData,
- pub wrong_modified_items: HashMap<ModifiedRelativePathBuf, JVStatusWrongModifyReason>,
- pub update_time: SystemTime,
- pub now_time: SystemTime,
-}
-
-impl Default for JVStatusInput {
- fn default() -> Self {
- Self {
- current_account: MemberId::default(),
- current_sheet: SheetName::default(),
- is_host_mode: false,
- in_ref_sheet: false,
- analyzed_result: AnalyzeResultPure::default(),
- latest_file_data: LatestFileData::default(),
- local_sheet_data: LocalSheetData::default(),
- wrong_modified_items: HashMap::new(),
- update_time: SystemTime::now(),
- now_time: SystemTime::now(),
- }
- }
-}
+pub struct JVStatusInput;