The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
feat(cli): --version 带上所属软件包名
XiaoYouChRaf3ef27e681e
diff --git a/app/cli.py b/app/cli.pyindex 1ad18377..bc680b6d 100644--- a/app/cli.py+++ b/app/cli.py@@ -55,7 +55,7 @@ def buildParser() -> CommandParser:parser = CommandParser(prog="ghd", description="Control Ghost Downloader from the terminal. ""Starts it in the background if it is not running.",epilog=OUTPUT_CONTRACT, formatter_class=RawDescriptionHelpFormatter)- parser.add_argument("--version", action="version", version=f"ghd {VERSION}")+ parser.add_argument("--version", action="version", version=f"ghd (Ghost Downloader) {VERSION}")commands = parser.add_subparsers(dest="command", required=True, metavar="command")add = commands.add_parser("add", help="add tasks and start them; prints task IDs")diff --git a/tests/test_cli.py b/tests/test_cli.pyindex cbaef888..9aa55219 100644--- a/tests/test_cli.py+++ b/tests/test_cli.py@@ -108,7 +108,7 @@ def test_version_replies_running_version(cli):[reply] = repliesassert reply.exitCode == 0- assert reply.output == f"ghd {VERSION}"+ assert reply.output == f"ghd (Ghost Downloader) {VERSION}"async def test_wait_returns_when_task_completes(cli, engine):task = buildTask("complete")