Skip to content

Commit ef0e109

Browse files
committed
bump to v0.6.0 with refactored CLI architecture, pagination, and safer internal API
1 parent fbf94c4 commit ef0e109

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/searchcode/__cli/app.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"""
1717

1818
import typing as t
19+
from types import SimpleNamespace
1920

2021
import rich_click as click
2122
from rich.syntax import Syntax
@@ -75,10 +76,6 @@ def licence(
7576
click.echo(ctx.get_help())
7677

7778

78-
import typing as t
79-
from types import SimpleNamespace
80-
81-
8279
@click.option(
8380
"--page", type=int, default=0, show_default=True, help="Start page number."
8481
)
@@ -166,7 +163,6 @@ def search(
166163
sources=sources,
167164
lines_of_code_lt=lines_of_code_lt,
168165
lines_of_code_gt=lines_of_code_gt,
169-
callback=None,
170166
status=status,
171167
)
172168

@@ -184,8 +180,7 @@ def fetch_paginated_results(
184180
sources: t.Optional[t.List[str]],
185181
lines_of_code_lt: t.Optional[int],
186182
lines_of_code_gt: t.Optional[int],
187-
callback: t.Optional[str],
188-
status,
183+
status: console.status,
189184
) -> t.Tuple[t.List[SimpleNamespace], int]:
190185
"""
191186
Fetch paginated results from the code index.

0 commit comments

Comments
 (0)