fix(tierCreator): Improve output message to indicate whether a file is being created or overwritten

This commit is contained in:
Sam Chau 2025-01-16 10:23:57 +10:30
parent 1694ce4b69
commit 166dbb8803
1 changed files with 2 additions and 1 deletions

View File

@ -91,8 +91,9 @@ def create_tier_format(tier,
# Write custom format file
output_path = output_dir / f"{resolution} {type_name} Tier {tier}.yml"
existing = "Overwriting" if output_path.exists() else "Creating"
print(
f"{'Would create' if dry_run else 'Creating'} custom format: {output_path} (includes {len(tier_groups)} groups)"
f"{'Would ' + existing.lower() if dry_run else existing} custom format: {output_path} (includes {len(tier_groups)} groups)"
)
if not dry_run: