From 7d59c15b0efd2aa5a27aef356a265f850a2e7e2f Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Tue, 13 Jan 2026 06:24:07 +0800 Subject: Add JSON result getters for command outputs --- .../JsonResults/Implements/SheetListResult.cs | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 CommandLineWrapper/JsonResults/Implements/SheetListResult.cs (limited to 'CommandLineWrapper/JsonResults/Implements/SheetListResult.cs') diff --git a/CommandLineWrapper/JsonResults/Implements/SheetListResult.cs b/CommandLineWrapper/JsonResults/Implements/SheetListResult.cs new file mode 100644 index 0000000..1fa9f0b --- /dev/null +++ b/CommandLineWrapper/JsonResults/Implements/SheetListResult.cs @@ -0,0 +1,26 @@ +using CommandLineWrapper; +using CommandLineWrapper.JsonResults; + +public class SheetListResultGetter : JsonResultGetter +{ + protected override Task ExecCommand(JVCSWorkspace workspace) + => workspace.SheetList(); +} + +public struct SheetListResult +{ + public SheetListJsonResult Result { get; set; } +} + +public struct SheetListJsonResult +{ + public List MySheets { get; set; } + public List ReferenceSheets { get; set; } + public List OtherSheets { get; set; } +} + +public struct SheetItem +{ + public string Name { get; set; } + public string Holder { get; set; } +} -- cgit