Skip to content

Commit aff8a57

Browse files
committed
Fix CLI tests with certain options
1 parent 542dc8f commit aff8a57

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

  • .github/workflows
  • {{cookiecutter.__package_slug}}/{{cookiecutter.__package_slug}}

.github/workflows/test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
test-template:
1111
runs-on: ubuntu-latest
1212
strategy:
13+
fail-fast: false
1314
matrix:
1415
config-file:
1516
- full.yaml

{{cookiecutter.__package_slug}}/{{cookiecutter.__package_slug}}/cli.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ def wrapper(*args: Any, **kwargs: Any) -> Any:
2525
@app.command(help="Install testing data for local development.")
2626
@syncify
2727
async def test_data() -> None:
28-
from . import _version
28+
from . import __version__
2929
from .services.db import get_session, test_data
3030

31-
typer.echo(f"{settings.project_name} - {_version.version}")
31+
typer.echo(f"{settings.project_name} - {__version__}")
3232

3333
async with get_session() as session:
3434
await test_data(session)
@@ -43,5 +43,10 @@ def version() -> None:
4343
typer.echo(f"{settings.project_name} - {__version__}")
4444

4545

46+
@app.command(help="Display a friendly greeting.")
47+
def hello() -> None:
48+
typer.echo(f"Hello from {settings.project_name}!")
49+
50+
4651
if __name__ == "__main__":
4752
app()

0 commit comments

Comments
 (0)