Compare commits

..

1 commit

Author SHA1 Message Date
66a3eb7f8c release: 1.2.2
Some checks failed
/ publish (push) Successful in 19s
/ test-build (push) Failing after 27s
2025-07-18 00:42:45 -04:00
2 changed files with 1 additions and 29 deletions

View file

@ -1,6 +1,6 @@
[project] [project]
name = "zona" name = "zona"
version = "1.2.1" version = "1.2.2"
description = "Opinionated static site generator." description = "Opinionated static site generator."
license = "BSD-3-Clause " license = "BSD-3-Clause "
license-files = ["LICENSE"] license-files = ["LICENSE"]

View file

@ -135,34 +135,6 @@ def serve(
) )
@app.command()
def templates(
templates: Annotated[
list[str] | None,
typer.Argument(
help="List of included templates to copy. Suffix .html is optional. Argument is required unless --all is given.",
show_default=False,
),
] = None,
all: Annotated[
bool,
typer.Option(
"-a", "--all", help="Write all included templates."
),
] = False,
):
if not all and not templates:
raise typer.BadParameter(
"Must provide template names unless --all is specified."
)
if not all:
assert templates
for t in templates:
print(t)
else:
print("we do it")
def version_callback(value: bool): def version_callback(value: bool):
if value: if value:
print(f"Zona version: {__version__('zona')}") print(f"Zona version: {__version__('zona')}")