I am working through the textual tutorial, and I want to put it in a proper cli that I can pip install and run the command without textual run --dev app.py. This is a fine pattern, but I also want this to work when I don’t have a file to run.
I set up a new project running hatch new, and added the following entrypoint, giving me a tutorial cli command to run.
... [project.scripts] tutorial = 'textual_tutorial.tui:tui'
https://waylonwalker.com/hatch-new-cli/
If you are using setup.py, you can set up entrypoints in the setup command.
...

