Skip to content

Commit 742a7d9

Browse files
committed
clean up CLI: remove ASCII banner, use Rich markup mode
1 parent a31f424 commit 742a7d9

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/diffuser/__init__.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@
99
from diffuser.render import render
1010
from diffuser.skill import get_skill_content
1111

12-
_BANNER = r"""
13-
██████╗ ██╗███████╗███████╗██╗ ██╗███████╗███████╗██████╗
14-
██╔══██╗██║██╔════╝██╔════╝██║ ██║██╔════╝██╔════╝██╔══██╗
15-
██║ ██║██║█████╗ █████╗ ██║ ██║███████╗█████╗ ██████╔╝
16-
██║ ██║██║██╔══╝ ██╔══╝ ██║ ██║╚════██║██╔══╝ ██╔══██╗
17-
██████╔╝██║██║ ██║ ╚██████╔╝███████║███████╗██║ ██║
18-
╚═════╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚══════╝╚═╝ ╚═╝
19-
"""
20-
2112

2213
def _version_callback(value: bool) -> None:
2314
if value:
@@ -28,7 +19,8 @@ def _version_callback(value: bool) -> None:
2819

2920

3021
app = typer.Typer(
31-
help=_BANNER + "\n CriticMarkup viewer for the terminal.",
22+
rich_markup_mode="rich",
23+
help="[bold]CriticMarkup[/bold] viewer for the terminal.",
3224
epilog="Made by Shaked Lokits. https://github.com/shakedlokits/diffuser",
3325
no_args_is_help=True,
3426
)

0 commit comments

Comments
 (0)