Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make serve catalog use decorator #784

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,4 @@ tiled/_version.py

.env
.asv/
venv/
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ Write the date in place of the "Unreleased" in the case a new version is release

# Changelog

## Unreleased

- Change registration of serve catalog cli command to use decorator like other serve subcommands.

## v0.1.0b8 (2024-09-06)

### Fixed
Expand Down
4 changes: 1 addition & 3 deletions tiled/commandline/_serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ async def serve_and_walk():
asyncio.run(serve_and_walk())


@serve_app.command("catalog")
def serve_catalog(
database: str = typer.Argument(
None, help="A filepath or database URI, e.g. 'catalog.db'"
Expand Down Expand Up @@ -447,9 +448,6 @@ def serve_catalog(
uvicorn.run(web_app, host=host, port=port, log_config=log_config)


serve_app.command("catalog")(serve_catalog)


@serve_app.command("pyobject")
def serve_pyobject(
object_path: str = typer.Argument(
Expand Down
Loading