feat: Print names dict with truncated values

This commit is contained in:
Tanner Collin (aider) 2025-05-22 19:12:28 -06:00
parent 60a38d30eb
commit a1a8965f7a

View File

@ -116,6 +116,21 @@ def main():
truncated_value = value
print(f"'{key}': '{truncated_value}'")
print("\nProcessed names (truncated file paths):")
if not names:
print("No names were processed and stored.")
else:
for key, value in names.items():
# Assuming value could be None or not a string, though unlikely with current logic
if isinstance(value, str):
if len(value) > 100:
truncated_value = value[:100] + "..."
else:
truncated_value = value
else:
truncated_value = str(value) # Convert non-string values to string
print(f"'{key}': '{truncated_value}'")
if __name__ == "__main__":
main()