Skip to content

Commit

Permalink
修复bug, 增加了上传回调功能
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycai653 committed Nov 19, 2018
1 parent cc6be4a commit 0521a78
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# 2.3.3
1. 修复qdownload配置cdn_domain使用了测试域名作为HOST 引起超过10G流量限制的问题
2. listbucket2 max-retry选项只限制出错下载次数,不限制接口返回空的次数
3. 修复cdnprefetch, cdnrefresh中的bug
4. 增加rput, fput, qupload的设置callbackurl, callbackhost的支持

# 2.3.2
1. 修复fetch incorrect region
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ qshell是利用[七牛文档上公开的API](http://developer.qiniu.com)实现
|版本 |支持平台|链接|
|--------|---------|----|
|qshell-v2.3.2-bugfix |Mac OSX, Linux, Windows|[下载](http://devtools.qiniu.com/qshell-bugfix.zip)|
|qshell-v2.3.3 |Mac OSX, Linux, Windows|[下载](http://devtools.qiniu.com/qshell-v2.3.3.zip)|

## 安装

Expand Down
4 changes: 2 additions & 2 deletions cmd/cdn.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func CdnRefresh(cmd *cobra.Command, params []string) {
var urlListFile string

if prefetchFile != "" {
urlListFile = params[0]
urlListFile = prefetchFile
} else {
urlListFile = "stdin"
}
Expand Down Expand Up @@ -126,7 +126,7 @@ func CdnPrefetch(cmd *cobra.Command, params []string) {
var urlListFile string

if prefetchFile != "" {
urlListFile = params[0]
urlListFile = prefetchFile
} else {
urlListFile = "stdin"
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"runtime"
)

var version = "v2.3.2-bugfix"
var version = "v2.3.3"

var versionCmd = &cobra.Command{
Use: "version",
Expand Down
10 changes: 5 additions & 5 deletions docs/cdnprefetch.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
# 格式

```
qshell cdnprefetch <UrlListFile>
qshell cdnprefetch [-i <UrlListFile>]
```

# 鉴权

需要在使用了`account`设置了`AccessKey``SecretKey`的情况下使用。
需要在使用了`account`设置了`AccessKey`, `SecretKey``Name`的情况下使用。

# 参数

|参数名|描述|
|---------|-----------|
|UrlListFile|需要进行预取的文件访问外链列表,每行一个访问外链|
|-i选项接受一个参数<UrlListFile> |需要进行预取的文件访问外链列表,每行一个访问外链, 如果没有制定,默认从终端读取输入内容 |

# 示例

Expand All @@ -33,7 +33,7 @@ http://if-pbl.qiniudn.com/hello7.txt
```

```
$ qshell cdnprefetch toprefetch.txt
$ qshell cdnprefetch -i toprefetch.txt
```

就可以预取文件`toprefetch.txt`中的访问外链了。
就可以预取文件`toprefetch.txt`中的访问外链了。
12 changes: 6 additions & 6 deletions docs/cdnrefresh.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,28 @@
刷新链接的命令格式:

```
qshell cdnrefresh <UrlListFile>
qshell cdnrefresh [-i <UrlListFile>]
```

刷新目录的命令格式:

```
qshell cdnrefresh -dirs <DirListFile>
qshell cdnrefresh --dirs <DirListFile>
```

注意需要刷新的目录,必须以`/`结尾。
注意需要刷新的目录,必须以`/`结尾。如果没有制定输入文件<UrlListFile>默认从终端读取输入内容

# 鉴权

需要在使用了`account`设置了`AccessKey``SecretKey`的情况下使用。

# 参数
# 参数和选项

刷新链接

|参数名|描述|
|---------|-----------|
|UrlListFile|需要进行刷新的文件访问外链列表,每行一个访问外链|
|i选项接受一个参数<UrlListFile>|需要进行刷新的文件访问外链列表,每行一个访问外链|

刷新目录

Expand All @@ -51,7 +51,7 @@ http://if-pbl.qiniudn.com/hello7.txt
```

```
$ qshell cdnrefresh torefresh.txt
$ qshell cdnrefresh -i torefresh.txt
```

就可以刷新文件`torefresh.txt`中的访问外链了。
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181
github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/qiniu/api.v7 v7.2.5-0.20181109085003-daf60906a46f+incompatible h1:buAA89ViNHjWGOlfINx4Rv0itg10jbSD5ZF7K/o0h3U=
github.com/qiniu/api.v7 v7.2.5-0.20181109085003-daf60906a46f+incompatible/go.mod h1:V8/EzlTgLN6q0s0CJmg/I81ytsvldSF22F7h6MI02+c=
github.com/qiniu/api.v7 v7.2.5-0.20181112070011-bc6998c1186a+incompatible h1:FnBHGjkt7JJ2ebnQU0cRWrjk14ShzTSfvnLqjin2AWI=
github.com/qiniu/api.v7 v7.2.5-0.20181112070011-bc6998c1186a+incompatible/go.mod h1:V8/EzlTgLN6q0s0CJmg/I81ytsvldSF22F7h6MI02+c=
github.com/qiniu/x v7.0.8+incompatible h1:P4LASsfwJY7SoZ13dwqBwGhZh7HKU8cdFVCUkmz0gZ8=
Expand Down

0 comments on commit 0521a78

Please sign in to comment.