product-lines tiers lists every row, present or new, before it reports there is nothing to do
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9b7a1c00dc
commit
aec7b3c019
1 changed files with 4 additions and 4 deletions
|
|
@ -228,15 +228,15 @@ public static class ProductLinesCommand
|
|||
}
|
||||
|
||||
var missing = resolved.Where(r => !r.Present).ToArray();
|
||||
if (missing.Length == 0)
|
||||
{
|
||||
Console.WriteLine("The tiers are already authored; nothing to do.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Console.WriteLine("Product tiers:");
|
||||
foreach (var (row, parent, present) in resolved)
|
||||
Console.WriteLine($" {(present ? "present" : "new ")} {row.Line} -> \"{row.Name}\" by {db.Cache.Get(parent.Manufacturer)?.ShortName}, floor {row.Floor:0.##}: {row.Description}");
|
||||
if (missing.Length == 0)
|
||||
{
|
||||
Console.WriteLine("\nThe tiers are already authored; nothing to do.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!apply)
|
||||
{
|
||||
Console.WriteLine($"\nDry run. Pass \"apply\" to author {missing.Length} bins.");
|
||||
|
|
|
|||
Loading…
Reference in a new issue