From 81ea89384eb4cfda14518a6ccb439d97399ad74f Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 7 Jan 2026 19:04:41 +0800 Subject: Add JSON output support for multiple commands - Add serde and serde_json dependencies - Add JSON output modules for accounts, align, analyzer, here, info, and sheets - Add --json and --pretty flags to sheet list, sheet align, here, status, info, and account list commands - Implement JSON serialization for here command output - Update command argument structs to include JSON output options --- src/output/align.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/output/align.rs (limited to 'src/output/align.rs') diff --git a/src/output/align.rs b/src/output/align.rs new file mode 100644 index 0000000..eae1fa7 --- /dev/null +++ b/src/output/align.rs @@ -0,0 +1,17 @@ +use std::{collections::HashMap, path::PathBuf}; + +use just_enough_vcs::vcs::data::local::align::AlignTaskName; +use serde::{Deserialize, Serialize}; + +#[derive(Debug, Default, Serialize, Deserialize)] +#[serde(rename_all = "PascalCase")] +pub struct AlignJsonResult { + pub align_tasks: HashMap, +} + +#[derive(Debug, Default, Serialize, Deserialize)] +#[serde(rename_all = "PascalCase")] +pub struct AlignTaskMapping { + pub local_mapping: PathBuf, + pub remote_mapping: PathBuf, +} -- cgit