compose-viz/naming.py

21 lines
568 B
Python
Raw Normal View History

def revise_naming_convention():
name_mapping = {
"EnvFile1": "EnvFilePath",
"Volume1": "AdditionalVolumeOption",
"External": "ExternalVolumeNetwork",
"External1": "ExternalConfig",
}
with open("./compose_viz/spec/compose_spec.py", "r") as spec_file:
spec_content = spec_file.read()
for origin_name, new_name in name_mapping.items():
spec_content.replace(origin_name, new_name)
return
if __name__ == "__main__":
revise_naming_convention()
print("Revised naming convention successfully!")