You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/batch_upload.py
+17-6Lines changed: 17 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -314,7 +314,10 @@ def upload(
314
314
directory: pathlib.Path=typer.Option(
315
315
..., help="The directory containing files to upload.", exists=True, file_okay=False
316
316
),
317
-
pattern: list[str] =typer.Option(["*.md"], help="The glob patterns for files to upload (e.g., '*.pdf', '**/*.txt'). Can be specified multiple times."),
317
+
pattern: list[str] =typer.Option(
318
+
["*.md"],
319
+
help="The glob patterns for files to upload (e.g., '*.pdf', '**/*.txt'). Can be specified multiple times.",
320
+
),
318
321
base_url: str=typer.Option("http://127.0.0.1:5050/api", help="The base URL of the API server."),
319
322
username: str=typer.Option(..., help="Admin username for login."),
320
323
password: str=typer.Option(..., help="Admin password for login."),
@@ -354,7 +357,9 @@ def upload(
354
357
355
358
ifnotall_files:
356
359
patterns_str="', '".join(pattern)
357
-
console.print(f"[bold yellow]No files found in '{directory}' matching patterns: '{patterns_str}'. Aborting.[/bold yellow]")
360
+
console.print(
361
+
f"[bold yellow]No files found in '{directory}' matching patterns: '{patterns_str}'. Aborting.[/bold yellow]"
0 commit comments