Skip to content

Commit 6033fd4

Browse files
committed
📦✨ Add print-cli-help command to justfile
1 parent 5dd57e9 commit 6033fd4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

‎ctt.toml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@ jupyter_files = "forbid"
5252
in_pypi = true
5353
in_rtd = true
5454
in_codecov = true
55+
cli_framework = "cyclopts"
5556
_extra_tasks = [
5657
"git init", # required to run uv
5758
"VIRTUAL_ENV='' uv run just init",
5859
"VIRTUAL_ENV='' uv run just build-docs",
5960
"uvx --with sp-repo-review[cli] repo-review . --select RTD --show errskip",
61+
"VIRTUAL_ENV='' uv run just print-cli-help",
6062
]
6163

6264
[output.".ctt/cli_c_vcs"]

‎project_name/justfile.jinja‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,3 +175,9 @@ serve-docs: build-docs-ref
175175
uv run --exact --python 3.{{python_max}} --only-group docs -- \
176176
mkdocs serve
177177
uv run --exact true
178+
{%- if has_cli %}
179+
180+
# Print the help of the CLI command
181+
print-cli-help:
182+
uv run {{ project_name }} --help
183+
{%- endif %}

0 commit comments

Comments
 (0)