The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
docs: 介绍 ghd 命令
XiaoYouChRcddba76974a1
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 16eaf004..884a91a3 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -31,6 +31,12 @@ Ghost Downloader 欢迎使用 AI 工具辅助开发,但请在提交 PR 时如只改 `app/view/` 的 PR 不会进入移动端,不签也可以合并。+## 从源码运行 cli++```sh+uv run Ghost-Downloader-3.py ghd --help+```+---## AI Tool Usage Policy@@ -63,3 +69,9 @@ Yes. Code in the public repository is always available under GPL v3, as promised### Do I need to sign for desktop UI changes only?PRs that only touch `app/view/` never reach the mobile app and can be merged without signing.++## Running the cli from source++```sh+uv run Ghost-Downloader-3.py ghd --help+```diff --git a/README.md b/README.mdindex db261062..25bae601 100644--- a/README.md+++ b/README.md@@ -73,6 +73,31 @@ Started as a passion project to help a Bilibili creator manage resources. Now it</picture></p>+<!-- COMMAND LINE -->+## Command Line++Install `ghd` from **Settings -> Command Line Tool**.++| Command | Description |+|:--|:--|+| `ghd probe <url>` | Preview a URL without adding a task |+| `ghd add <url>...` | Add and start tasks |+| `ghd tasks` | List tasks |+| `ghd task <taskId>` | Show task details |+| `ghd pause <taskId>...` | Pause tasks |+| `ghd start <taskId>...` | Resume tasks |+| `ghd remove <taskId>...` | Remove tasks and delete unfinished files |+| `ghd wait <taskId>...` | Wait for tasks to finish |++```sh+# see which files the torrent contains+ghd probe "https://example.com/a.torrent"+# download only files 0 and 3 into ./downloads+ghd add "https://example.com/a.torrent" --select 0,3 -o ./downloads+# wait until the download finishes+ghd wait tsk_0123+```+<!-- ROADMAP -->## Roadmapdiff --git a/README_zh.md b/README_zh.mdindex 48c4101c..5dc41c5b 100644--- a/README_zh.md+++ b/README_zh.md@@ -74,6 +74,31 @@</picture></p>+<!-- COMMAND LINE -->+## 命令行++在 **设置 -> 命令行工具** 中安装 `ghd` 后即可使用。++| 命令 | 作用 |+|:--|:--|+| `ghd probe <url>` | 预览链接,不添加任务 |+| `ghd add <url>...` | 添加并开始任务 |+| `ghd tasks` | 列出任务 |+| `ghd task <taskId>` | 查看任务详情 |+| `ghd pause <taskId>...` | 暂停任务 |+| `ghd start <taskId>...` | 继续任务 |+| `ghd remove <taskId>...` | 移除任务,并删除未完成的文件 |+| `ghd wait <taskId>...` | 等待任务结束 |++```sh+# 查看种子包含哪些文件+ghd probe "https://example.com/a.torrent"+# 只下载其中第 0、3 个文件,保存到 ./downloads+ghd add "https://example.com/a.torrent" --select 0,3 -o ./downloads+# 等待下载完成+ghd wait tsk_0123+```+<!-- ROADMAP -->## 计划