refactor(core): 重构核心分层结构并添加发布库聚合
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
using System.CommandLine;
|
||||
using Gpulse.WCT.DataAnalyzer.Core.Services;
|
||||
using Gpulse.WCT.DataAnalyzer.Core.Application;
|
||||
|
||||
namespace Gpulse.WCT.DataAnalyzer.Commands;
|
||||
|
||||
@@ -25,8 +25,8 @@ public class ExportCommand : Command
|
||||
|
||||
var typeOption = new Option<string>(
|
||||
"--type",
|
||||
() => "all",
|
||||
"Data type to export: qfod, ploss, or all"
|
||||
() => "charging-parameters",
|
||||
"Data type: charging-parameters, qfod, ploss, or all"
|
||||
);
|
||||
|
||||
AddOption(formatOption);
|
||||
@@ -44,6 +44,12 @@ public class ExportCommand : Command
|
||||
{
|
||||
if (format == "csv")
|
||||
{
|
||||
if (type is "charging-parameters" or "charging" or "all")
|
||||
{
|
||||
var path = await exportService.ExportChargingParametersToCsvAsync(output);
|
||||
Console.WriteLine($" ChargingParameterDatabase CSV exported: {path}");
|
||||
}
|
||||
|
||||
if (type is "qfod" or "all")
|
||||
{
|
||||
var path = await exportService.ExportQfodToCsvAsync(output);
|
||||
|
||||
Reference in New Issue
Block a user