Skip to content

Commit e1325fd

Browse files
feat: add ascii art splash screen to watch command
1 parent f1ae1e3 commit e1325fd

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

nomnom/commands/watch.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,19 @@
1212
from nomnom.discovery import discover_plugins, prioritize_plugins
1313
from nomnom.watcher import run_watcher
1414

15+
NOMNOM_ASCII = """\
16+
,--,--, ,---. ,--,--,--.,--,--, ,---. ,--,--,--.
17+
| \\| .-. || || \\| .-. || |
18+
| || |' '-' '| | | || || |' '-' '| | | |
19+
`--''--' `---' `--`--`--'`--''--' `---' `--`--`--'
20+
"""
21+
22+
23+
def show_ascii_splash(console: Console) -> None:
24+
"""Display ASCII art splash screen."""
25+
console.print(Panel(f"[#F9B2D7]{NOMNOM_ASCII}[/#F9B2D7]", border_style="cyan", padding=(1, 2)))
26+
console.print()
27+
1528

1629
def watch_command(
1730
*,
@@ -73,6 +86,8 @@ def watch_command(
7386
if config_plugin_status.get(entry.name, True)
7487
]
7588

89+
show_ascii_splash(console)
90+
7691
banner = Panel(
7792
f"[bold cyan]nomnom[/] v{nomnom.get_version()}\n"
7893
f"[dim]Config: {config}[/]"

0 commit comments

Comments
 (0)