Get console entry point working

This commit is contained in:
Isaiah Odhner 2023-06-07 23:49:59 -04:00
parent d77a785a64
commit 512fe69e9e
2 changed files with 8 additions and 2 deletions

View File

@ -11,7 +11,6 @@ url = https://github.com/1j01/textual-paint
keywords = tui, terminal, paint, drawing, art, graphics, text, textual, rich, ansi, ansi-art, mspaint
[options]
packages = find:
install_requires =
textual
rich
@ -25,3 +24,6 @@ wallpaper =
appscript
pyxdg
PyGObject
[options.entry_points]
console_scripts =
textual-paint = textual_paint.paint:main

View File

@ -4494,5 +4494,9 @@ if args.clear_screen:
app.call_later(app.start_backup_interval)
if __name__ == "__main__":
def main() -> None:
"""Entry point for the textual-paint CLI."""
app.run()
if __name__ == "__main__":
main()