aider: Added a function to check the git status and print it.

# Context:
USER: status
This commit is contained in:
Tasha Upchurch
2023-07-07 01:54:57 -04:00
parent d1827f184d
commit 7aeaf10c52
+11
View File
@@ -0,0 +1,11 @@
import subprocess
def check_git_status():
try:
output = subprocess.check_output(['git', 'status'])
print(output.decode('utf-8'))
except subprocess.CalledProcessError as e:
print(f"Error: {e}")
if __name__ == "__main__":
check_git_status()