mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-01-07 03:31:20 +01:00
Added files helper
This commit is contained in:
7
euclid/helpers/files.py
Normal file
7
euclid/helpers/files.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from termcolor import colored
|
||||
|
||||
|
||||
def update_file(path, new_content):
|
||||
with open(path, 'w') as file:
|
||||
file.write(new_content)
|
||||
print(colored(f"Updated file {path}", "green"))
|
||||
Reference in New Issue
Block a user