# AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/cli.ipynb.

# %% auto 0
__all__ = ['welcome']

# %% ../nbs/cli.ipynb 3
from rich.console import Console
from rich.panel import Panel
import pyfiglet

def welcome():
    """Prints the QGEAR welcome banner to the console."""
    console = Console()

    # Generate the ASCII art text
    ascii_art = pyfiglet.figlet_format("Q GEAR", font="standard")

    # Create a colorful message
    message = (
        f"[bold cyan]{ascii_art}[/bold cyan]\n"
        "[bold green]Installation successful![/bold green]\n\n"
        "Welcome to QGEAR. Run 'qgear.run_cudaq() to speed up"
        "[italic grey50]Fun fact: We love to use Emacs! 🐧[/italic grey50]"
    
    )

    # Display it in a nice panel
    console.print(Panel(message, title="[bold yellow]Welcome[/bold yellow]", border_style="dim blue"))
