Skip to content

Commit

Permalink
✨ feat(cli): enhance initialization messages
Browse files Browse the repository at this point in the history
- Add newline for better readability in pack initialization message
- Add new instructions for users to place and push stickers
  • Loading branch information
sudoskys committed Sep 22, 2024
1 parent 3d462c5 commit 016a5ea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tsticker/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ async def init(
console.print("[bold red]Pack name must be alphanumeric and underscore only.[/]")
return
console.print(
f"[bold blue]Initializing with pack name:[/] {pack_name}, "
f"[bold blue]Pack Title:[/] {pack_title}, "
f"[bold blue]Initializing with pack name:[/] {pack_name}\n"
f"[bold blue]Pack Title:[/] {pack_title} \n"
f"[bold blue]Sticker Type:[/] {sticker_type}"
)
root_dir = pathlib.Path(os.getcwd())
Expand Down Expand Up @@ -343,6 +343,8 @@ async def init(
# 同步索引文件
await sync_index(app, index_file, sticker_set)
console.print("[bold blue]Initialization completed![/]")
console.print(f"\n[bold yellow]Put your stickers in {sticker_table_dir}, [/]")
console.print("[bold yellow]then run 'tsticker push' to push your stickers to Telegram.[/]")


async def upon_credentials() -> tuple[Optional[StickerPack], Optional[pathlib.Path], Optional[StickerApp]]:
Expand Down

0 comments on commit 016a5ea

Please sign in to comment.