Skip to content

Commit 59e8ffe

Browse files
authored
chore: show project location clearly (#87)
1 parent 7d9a0dc commit 59e8ffe

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/cocoindex_code/cli.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ def _format_progress(progress: IndexingProgress) -> str:
9191
)
9292

9393

94+
def print_project_header(project_root: str) -> None:
95+
"""Print the project root directory."""
96+
_typer.echo(f"Project: {project_root}")
97+
98+
9499
def print_index_stats(status: ProjectStatusResponse) -> None:
95100
"""Print formatted index statistics."""
96101
if status.progress is not None:
@@ -261,6 +266,7 @@ def init(
261266
def index() -> None:
262267
"""Create/update index for the codebase."""
263268
client, project_root = require_daemon_for_project()
269+
print_project_header(project_root)
264270

265271
_run_index_with_progress(client, project_root)
266272

@@ -310,6 +316,7 @@ def search(
310316
def status() -> None:
311317
"""Show project status."""
312318
client, project_root = require_daemon_for_project()
319+
print_project_header(project_root)
313320
resp = client.project_status(project_root)
314321
print_index_stats(resp)
315322

0 commit comments

Comments
 (0)