refactor: move files to git_monitor/ directory and add run.py

This commit is contained in:
2026-03-06 19:30:27 +01:00
parent d2556bf656
commit 1b6c7dcc01
9 changed files with 13 additions and 0 deletions

19
git_monitor/main.py Normal file
View File

@@ -0,0 +1,19 @@
from logger import logger
from tray_app import TrayApp
class Application:
def __init__(self):
logger.info("Application starting...")
self.tray_app = TrayApp()
def run(self):
try:
self.tray_app.run()
except KeyboardInterrupt:
logger.info("Application stopped by user.")
except Exception as e:
logger.error(f"Application error: {e}")
if __name__ == "__main__":
app = Application()
app.run()