Skip to content

Commit 0699e1c

Browse files
committed
Rename server CLI entrypoint from docverse to docverse-admin
The server and client packages both declared a "docverse" script, causing the server's entrypoint to shadow the client's in the uv workspace. Rename the server CLI to "docverse-admin" so the unqualified "docverse" command resolves to the user-facing client CLI (docverse upload).
1 parent de3ca9e commit 0699e1c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dependencies = [
2020
]
2121

2222
[project.scripts]
23-
docverse = "docverse.cli:main"
23+
docverse-admin = "docverse.cli:main"
2424

2525
[build-system]
2626
requires = [

src/docverse/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ def init(*, alembic_config_path: Path, reset: bool) -> None:
9393
if db_state.has_orm_tables and db_state.has_alembic_version:
9494
msg = (
9595
"Database already initialized and tracked by Alembic. "
96-
"Use 'docverse update-db-schema' to apply migrations, "
97-
"or 'docverse init --reset' to reinitialize."
96+
"Use 'docverse-admin update-db-schema' to apply migrations, "
97+
"or 'docverse-admin init --reset' to reinitialize."
9898
)
9999
raise click.ClickException(msg)
100100

101101
if db_state.has_orm_tables and not db_state.has_alembic_version:
102102
msg = (
103103
"Database has existing tables but no Alembic tracking. "
104-
"Use 'docverse init --reset' to reinitialize."
104+
"Use 'docverse-admin init --reset' to reinitialize."
105105
)
106106
raise click.ClickException(msg)
107107

0 commit comments

Comments
 (0)