feat: finalize bilibili cli workflow

This commit is contained in:
home-dev-pookz
2026-03-25 04:29:35 +08:00
parent 03953df4ec
commit 0778e29a04
21 changed files with 99 additions and 1348 deletions
+5 -2
View File
@@ -166,10 +166,13 @@ def ensure_biliup_binary(force_check: bool = True) -> Path:
return binary_path
def run_biliup_command(arguments: list[str]) -> subprocess.CompletedProcess[str]:
def run_biliup_command(arguments: list[str], interactive: bool = False) -> subprocess.CompletedProcess[str]:
binary_path = ensure_biliup_binary(force_check=True)
command = [str(binary_path), *arguments]
if interactive:
return subprocess.run(command, check=False)
return subprocess.run(
[str(binary_path), *arguments],
command,
check=False,
capture_output=True,
text=True,