Files
markdownblog/tooling/ascii.py
rattatwinko 6665f65529
Some checks failed
Deploy / build-and-deploy (push) Failing after 22m33s
did some docker stuff ; deploy this shit .
2025-07-06 11:17:22 +02:00

16 lines
323 B
Python
Executable File

#!/bin/python
from pyfiglet import Figlet
import sys
def asciiart(text: str) -> str:
f = Figlet(font="slant")
return f.renderText(text)
if __name__ == "__main__":
if len(sys.argv) != 2:
print("Usage: python ascii.py \"TEXT\"")
sys.exit(1)
text = sys.argv[1]
print(asciiart(text))