Assume having tool.py
file with the following content:
import typer
app = typer.Typer()
@app.command()
def create():
...
@app.command()
def delete():
...
if __name__ == "__main__":
app()
It can be executed using typer tool.py run create
.
I’m wondering if there is a way to execute it without specifying .py
extension? Something like typer tool run create
. Or using “an alias” instead of filename e.g. tool.py > talias
and use typer talias run create
.