Add attribute string builder

This commit is contained in:
Daniel Lindmark 2024-05-20 18:13:39 -05:00
parent e0a38c17d1
commit a99d9a9a02

View File

@ -61,8 +61,13 @@ def write_to_file(file_name, string):
f.write("\n")
f.close()
# Get the repository object
repository = Repository.request(allspice, "AllSpice-Demos", "Actions-demo")
write_to_file(file_name, get_attributes(repository))
# Get the attributes of the repository object
attributes_string = ", ".join(f"Repository.{attribute}" for attribute in get_attributes(repository))
# Write the attributes to the file
write_to_file(file_name, attributes_string)
print("End-of-file")