Files
uniswap_auto_clp/tools/commands/git_status.py
DiTus 050eeeaff2 backup-2025-12-19-20: Automated backup - 10 files changed
📋 Files modified: 10
 Timestamp: 2025-12-19 20:27:31 UTC
🔒 Security: PASSED (no secrets detected)
💾 Automated by Git Agent
2025-12-19 21:27:31 +01:00

42 lines
1.1 KiB
Python

#!/usr/bin/env python3
"""
Git Status Slash Command
Usage: /git-status
Shows current Git Agent status
"""
import os
import subprocess
import sys
def main():
"""Execute git status command"""
project_root = "K:\\Projects\\uniswap_auto_clp"
git_agent_path = os.path.join(project_root, "tools", "git_agent.py")
try:
result = subprocess.run(
["python", git_agent_path, "--status"],
cwd=project_root,
capture_output=True,
text=True,
check=False
)
if result.returncode == 0:
print("[STATUS] Git Agent Status")
print()
print("--- Git Agent Output ---")
print(result.stdout)
print("--- End Output ---")
else:
error_msg = result.stderr or result.stdout or "Unknown error"
print("[ERROR] Status check failed")
print(f"Error: {error_msg}")
except Exception as e:
print(f"❌ **Status check failed**")
print(f"\nException: {str(e)}")
if __name__ == "__main__":
main()