Skip to content

Commit 2ce5099

Browse files
Show available targets when test/docs run without a target
`just test` / `just docs` with no argument now print their available targets instead of erroring, improving discoverability of the argument-dispatched recipes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 6eb9bbd commit 2ce5099

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

justfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@ lint:
1818
uv run mypy .
1919

2020
# Run tests: just test (pyathena|sqla|sqla-async)
21-
test target:
21+
test target="help":
2222
@just _test-{{target}}
2323

24+
_test-help:
25+
@echo "Available test targets: pyathena, sqla, sqla-async"
26+
2427
_test-pyathena: lint
2528
uv run pytest -n 8 --cov pyathena --cov-report html --cov-report term tests/pyathena/
2629

@@ -35,9 +38,12 @@ tox:
3538
uvx tox@{{TOX_VERSION}} -c pyproject.toml run
3639

3740
# Docs: just docs (build|lint|format)
38-
docs target:
41+
docs target="help":
3942
@just _docs-{{target}}
4043

44+
_docs-help:
45+
@echo "Available docs targets: build, lint, format"
46+
4147
_docs-build:
4248
uv run sphinx-multiversion docs docs/_build/html
4349
echo '<meta http-equiv="refresh" content="0; url=./master/index.html">' > docs/_build/html/index.html

0 commit comments

Comments
 (0)