Skip to content

Commit

Permalink
feat(pikasay): add --mascot cli flag and cat mascot
Browse files Browse the repository at this point in the history
  • Loading branch information
actionless committed Dec 12, 2024
1 parent 97b65db commit e3e0131
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion pikaur/pikasay.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@
"""


CATPIC: Final = r"""
/\ /\
{ `---' }
\ 0 0 /
~~~>(__V__)<~~~
`---'
""" # (C) 2024 Actionless/Loveless


def bubble_top(
text: str, margin: int = 1, padding: int = 1, width: int | None = None,
) -> str:
Expand Down Expand Up @@ -222,6 +231,11 @@ def pikasay_cli() -> None:
default="horizontal",
help="horizontal or vertical",
)
parser.add_argument(
"--mascot",
default="default",
help="default or cat",
)
args = parser.parse_args()

text = " ".join(args.text)
Expand All @@ -233,7 +247,7 @@ def pikasay_cli() -> None:
text = parser.format_help()
pikasay(
text, margin=args.margin, padding=args.padding, width=args.width,
orientation=args.orientation,
orientation=args.orientation, mascot_pic=CATPIC if args.mascot == "cat" else PIKAPIC,
)


Expand Down

0 comments on commit e3e0131

Please sign in to comment.