diff --git a/aicmt/cli_interface.py b/aicmt/cli_interface.py index 3ec4fe9..4e0f668 100644 --- a/aicmt/cli_interface.py +++ b/aicmt/cli_interface.py @@ -13,7 +13,8 @@ class CLIInterface: def __init__(self): - self.console = Console() + pass + # self.console = Console() def display_welcome(self): """Display welcome message""" @@ -24,10 +25,26 @@ def display_welcome(self): ) ) - def display_info(self, message: str): + @classmethod + def display_info(cls, message: str): """Display information message""" console.print(f"[bold blue]{message}[/bold blue]") + @classmethod + def display_error(cls, message: str): + """Display error message""" + console.print(f"[bold red]Error:[/bold red] {message}") + + @classmethod + def display_success(cls, message: str): + """Display success message""" + console.print(f"[bold green]✓[/bold green] {message}") + + @classmethod + def display_warning(cls, message: str): + """Display warning message""" + console.print(f"[bold yellow]⚠️[/bold yellow] {message}") + def display_changes(self, changes: list): """Display current unstaged changes""" if not changes: @@ -101,14 +118,6 @@ def confirm_push(self) -> bool: except EOFError: return False - def display_error(self, message: str): - """Display error message""" - console.print(f"[bold red]Error:[/bold red] {message}") - - def display_success(self, message: str): - """Display success message""" - console.print(f"[bold green]✓[/bold green] {message}") - def display_repo_info(self, working_dir: str, branch: str): """Display repository information""" console.print("\n[cyan]━━━ Git Repository Info ━━━[/cyan]")