1 Star 8 Fork 3

Rick / http-downloader

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Contributors GitHub release GitHub All Releases

入门

hd 是一个基于 HTTP 协议的下载工具。

通过命令:brew install linuxsuren/linuxsuren/hd 来安装

或者,对于 Linux 用户可以直接通过命令下载:

curl -L https://github.com/linuxsuren/http-downloader/releases/latest/download/hd-linux-amd64.tar.gz | tar xzv
mv hd /usr/local/bin

想要浏览该项目的代码吗?GitPod 绝对可以帮助你!

用法

hd get https://github.com/jenkins-zh/jenkins-cli/releases/latest/download/jcli-linux-amd64.tar.gz --thread 6

或者,用一个更加简便的办法:

hd get jenkins-zh/jenkins-cli/jcli -t 6

获取,你也可以安装一个来自 GitHub 的软件包:

hd install jenkins-zh/jenkins-cli/jcli -t 6

或者,你也可以从 GitHub 上下载预发布的二进制包:

hd get --pre ks

功能

  • 基于 HTTP 协议下载文件的 Golang 工具库
  • 多线程
  • 断点续传 (TODO)
  • 对 GitHub release 文件下载(安装)友好

使用多阶段构建

你想要在 Docker 构建中下载工具吗?这个很容易的,请查看下面的例子:

FROM ghcr.io/linuxsuren/hd:v0.0.42 as downloader
RUN hd install kubesphere-sigs/ks@v0.0.50

FROM alpine:3.10
COPY --from=downloader /usr/local/bin/ks /usr/local/bin/ks
CMD ["ks"]
MIT License Copyright (c) 2021 Zhao Xiaojie Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

hd 是一个支持多线程并发下载的基于 HTTP 协议的下载工具 展开 收起
Go 等 4 种语言
MIT
取消

发行版 (2)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
Go
1
https://gitee.com/linuxsuren/http-downloader.git
git@gitee.com:linuxsuren/http-downloader.git
linuxsuren
http-downloader
http-downloader
master

搜索帮助