Skip to content

Commit 60d4f76

Browse files
committed
write mapping overview to console out
1 parent 663e022 commit 60d4f76

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/CIM.Mapper.CLI/Program.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,15 @@ public static async Task<int> Main(string[] args)
8989
{
9090
var transSpec = config.GetTransformationSpecification(transSpecName.Trim());
9191
var transformer = config.InitializeDataTransformer(transSpecName);
92-
transformer.TransferData();
92+
var mappingGuide = transformer.TransferData();
9393
await CheckForCIMProcessingAsync(
9494
serializerName,
9595
outputFilePath,
9696
config,
9797
transformer)
9898
.ConfigureAwait(false);
99+
100+
Console.Out.WriteLine(mappingGuide.TabbedTextReport());
99101
}
100102
},
101103
transformationConfigurationFileOption,

src/CIM.Mapper/DAX.IO/DataModel/MappingGuide.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,15 @@ public string TextReport()
120120

121121
foreach (DataSetMappingGuide dsGuide in DataSetMappingGuides.Values)
122122
{
123-
result += "Dataset: " + dsGuide.ClassName + ", count=" + dsGuide.Antal + "";
123+
result += "Dataset: " + dsGuide.ClassName;
124124
if (dsGuide.DataSetMapping != null)
125125
result += " -> " + dsGuide.DataSetMapping.OutputDataSet;
126126
else
127127
result += " -> ?";
128128

129129
result += " " + dsGuide.GetMessageString();
130130

131-
result += "\r\n";
131+
result += " (count=" + dsGuide.Antal + ")\r\n";
132132

133133

134134
foreach (AttributeMappingGuide attrGuide in dsGuide.AttributeMappingGuides.Values)

0 commit comments

Comments
 (0)