-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
32 lines (24 loc) · 816 Bytes
/
main.py
File metadata and controls
32 lines (24 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env python3
"""GitHub Runner Manager CLI - Main entry point."""
import sys
from dotenv import load_dotenv
from rich.console import Console
from rich.panel import Panel
from rich.text import Text
load_dotenv()
console = Console()
def main():
"""Main entry point for the CLI application."""
try:
welcome_text = Text("GitHub Runner Manager", style="bold blue")
console.print(Panel(welcome_text, title="Welcome", border_style="blue"))
from src.presentation.cli.commands import app
app()
except KeyboardInterrupt:
console.print("\nGoodbye!", style="yellow")
sys.exit(0)
except Exception as e:
console.print(f"An error occurred: {e}", style="bold red")
sys.exit(1)
if __name__ == "__main__": # pragma: no cover
main()