发行版优化 / 文件下载路径结构化 / 文案提示有错误
https://codechina.csdn.net/LinuxSuRen/ks/uploads/bdc2658a97aa31107d94ab9a1a7cc374/jcli.tar.gz
这个文件下载路径的结构化、可读性太差。例如:GitHub 的路径为:https://github.com/linuxsuren/http-downloader/releases/download/v0.0.9/hd-linux-amd64.tar.gz
如果路径可读性好的话,将会方便使用。例如:我有一个项目可以很方便地下载文件,命令为:hd get jenkins-zh/jenkins-cli/jcli --thread 6
上面的命令会使用6个线程来下载对应仓库中的 release 文件,输出结果如下:
[root@i-0rfui6af ~]# hd get jenkins-zh/jenkins-cli/jcli --thread 6
start to download from https://github.com/jenkins-zh/jenkins-cli/releases/latest/download/jcli-linux-amd64.tar.gz
start to download with 6 threads, size: 6363659, unit: 1060609
Downloading: [====================================================================] 100%
Downloading: [====================================================================] 100%
Downloading: [====================================================================] 100%
Downloading: [====================================================================] 100%
Downloading: [====================================================================] 100%
Downloading: [====================================================================] 100%