Skip to content

Commit d0002b5

Browse files
committed
chore(refactor): refactor has been put in place at "2026-03-31T21:58:01Z"
1 parent 026c5be commit d0002b5

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/dualentry_cli/cli.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,27 @@
55
import click
66
from typer.core import TyperGroup
77

8+
LOGO = r"""
9+
/$$$$$$$ /$$ /$$
10+
| $$__ $$ | $$ | $$
11+
| $$ \ $$ /$$ /$$ /$$$$$$ | $$ /$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$ /$$ /$$
12+
| $$ | $$| $$ | $$ |____ $$| $$ /$$__ $$| $$__ $$|_ $$_/ /$$__ $$| $$ | $$
13+
| $$ | $$| $$ | $$ /$$$$$$$| $$| $$$$$$$$| $$ \ $$ | $$ | $$ \__/| $$ | $$
14+
| $$ | $$| $$ | $$ /$$__ $$| $$| $$_____/| $$ | $$ | $$ /$$| $$ | $$ | $$
15+
| $$$$$$$/| $$$$$$/| $$$$$$$| $$| $$$$$$$| $$ | $$ | $$$$/| $$ | $$$$$$$
16+
|_______/ \______/ \_______/|__/ \_______/|__/ |__/ \___/ |__/ \____ $$
17+
/$$ | $$
18+
| $$$$$$/
19+
\______/
20+
"""
21+
822

923
class HelpfulGroup(TyperGroup):
1024
"""Typer group that shows help + suggestions instead of 'No such command'."""
1125

1226
def format_help(self, ctx, formatter):
27+
if ctx.parent is None:
28+
click.echo(LOGO)
1329
super().format_help(ctx, formatter)
1430

1531
def resolve_command(self, ctx, args):

0 commit comments

Comments
 (0)