File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55import click
66from typer .core import TyperGroup
77
8+ LOGO = r"""
9+ /$$$$$$$ /$$ /$$
10+ | $$__ $$ | $$ | $$
11+ | $$ \ $$ /$$ /$$ /$$$$$$ | $$ /$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$ /$$ /$$
12+ | $$ | $$| $$ | $$ |____ $$| $$ /$$__ $$| $$__ $$|_ $$_/ /$$__ $$| $$ | $$
13+ | $$ | $$| $$ | $$ /$$$$$$$| $$| $$$$$$$$| $$ \ $$ | $$ | $$ \__/| $$ | $$
14+ | $$ | $$| $$ | $$ /$$__ $$| $$| $$_____/| $$ | $$ | $$ /$$| $$ | $$ | $$
15+ | $$$$$$$/| $$$$$$/| $$$$$$$| $$| $$$$$$$| $$ | $$ | $$$$/| $$ | $$$$$$$
16+ |_______/ \______/ \_______/|__/ \_______/|__/ |__/ \___/ |__/ \____ $$
17+ /$$ | $$
18+ | $$$$$$/
19+ \______/
20+ """
21+
822
923class 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 ):
You can’t perform that action at this time.
0 commit comments