style(console): combine adjacent output with readable multiline strings

This commit is contained in:
aj
2026-09-27 12:48:52 -04:00
parent 82feb78b0f
commit fdbc1fb99f
2 changed files with 34 additions and 21 deletions
+14 -8
View File
@@ -104,9 +104,13 @@ int RunDataCollection(string dir, string dbPath, string saveDir, double s, strin
var resolvedDb = dbPath.EndsWith(".db", StringComparison.OrdinalIgnoreCase)
? dbPath
: dbPath + ".db";
Console.WriteLine($"Database: {Path.GetFullPath(resolvedDb)}");
Console.WriteLine($"Sheet sizes: {sheetSuite.Length} configurations");
Console.WriteLine($"Spacing: {s:F2}");
Console.WriteLine(
$"""
Database: {Path.GetFullPath(resolvedDb)}
Sheet sizes: {sheetSuite.Length} configurations
Spacing: {s:F2}
"""
);
if (saveDir != null)
Console.WriteLine($"Saving nests to: {saveDir}");
Console.WriteLine("---");
@@ -317,13 +321,15 @@ int RunDataCollection(string dir, string dbPath, string saveDir, double s, strin
}
totalSw.Stop();
Console.WriteLine("---");
Console.WriteLine($"Processed: {processed} parts, {totalRuns} total runs");
Console.WriteLine(
$"Skipped: {skippedExisting} (existing) + {skippedGeometry} (no geometry) + {skippedFeatures} (no features)"
$"""
---
Processed: {processed} parts, {totalRuns} total runs
Skipped: {skippedExisting} (existing) + {skippedGeometry} (no geometry) + {skippedFeatures} (no features)
Time: {totalSw.Elapsed:h\:mm\:ss}
Database: {Path.GetFullPath(resolvedDb)}
"""
);
Console.WriteLine($"Time: {totalSw.Elapsed:h\\:mm\\:ss}");
Console.WriteLine($"Database: {Path.GetFullPath(resolvedDb)}");
return 0;
}