added cargo files

This commit is contained in:
2026-03-03 10:57:43 -05:00
parent 478a90e01b
commit 169df46bc2
813 changed files with 227273 additions and 9 deletions

View File

@@ -0,0 +1,22 @@
import json
import sys
def update_version(file_path, new_version):
with open(file_path, 'r') as file:
config = json.load(file)
# Update the version at the root level
config['version'] = new_version
with open(file_path, 'w') as file:
json.dump(config, file, indent=2)
if __name__ == "__main__":
if len(sys.argv) != 3:
print("Usage: update_version.py <file_path> <new_version>")
sys.exit(1)
file_path = sys.argv[1]
new_version = sys.argv[2]
update_version(file_path, new_version)