2024-11-09 09:05:53 -08:00
|
|
|
"""CLI interface for project_name project.
|
2024-11-09 08:01:27 -08:00
|
|
|
|
|
|
|
Be creative! do whatever you want!
|
|
|
|
|
|
|
|
- Install click or typer and create a CLI app
|
|
|
|
- Use builtin argparse
|
|
|
|
- Start a web application
|
|
|
|
- Import things from your .base module
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
def main(): # pragma: no cover
|
|
|
|
"""
|
|
|
|
The main function executes on commands:
|
2024-11-09 09:05:53 -08:00
|
|
|
`python -m project_name` and `$ project_name `.
|
2024-11-09 08:01:27 -08:00
|
|
|
|
|
|
|
This is your program's entry point.
|
|
|
|
|
|
|
|
You can change this function to do whatever you want.
|
|
|
|
Examples:
|
|
|
|
* Run a test suite
|
|
|
|
* Run a server
|
|
|
|
* Do some other stuff
|
|
|
|
* Run a command line application (Click, Typer, ArgParse)
|
|
|
|
* List all available tasks
|
|
|
|
* Run an application (Flask, FastAPI, Django, etc.)
|
|
|
|
"""
|
|
|
|
print("This will do something")
|