File tree Expand file tree Collapse file tree 10 files changed +122
-290
lines changed Expand file tree Collapse file tree 10 files changed +122
-290
lines changed Original file line number Diff line number Diff line change 6363 goarch : ${{ matrix.goarch }}
6464 goversion : " https://golang.org/dl/go1.20.1.linux-amd64.tar.gz"
6565 ldflags : -X "github.com/qiniu/qshell/v2/iqshell/common/version.version=${{ env.APP_VERSION }}" -extldflags "-static"
66+ project_path : " ./main"
Original file line number Diff line number Diff line change 1- # 2.9.3
1+ # 2.10.0
221 . expire 与 batchexpire 命令调整,deleteAfterDay 为 0 时取消文件的过期删除配置
332 . 处理文件大小为 0 字节下载失败问题
443 . 私有云支持仅配置 UC 域名
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -7,15 +7,15 @@ import (
77)
88
99func TestQShellDocument01 (t * testing.T ) {
10- prefix := "# 简介 \n ` qshell` "
10+ prefix := "# qshell"
1111 result , _ := test .RunCmdWithError ()
1212 if ! strings .HasPrefix (result , prefix ) {
1313 t .Fatal ("document test fail for cmd: qshell" )
1414 }
1515}
1616
1717func TestQShellDocument02 (t * testing.T ) {
18- prefix := "# 简介 \n ` qshell` "
18+ prefix := "# qshell"
1919 result , _ := test .RunCmdWithError ("--doc" )
2020 if ! strings .HasPrefix (result , prefix ) {
2121 t .Fatal ("document test fail for cmd: qshell" )
Original file line number Diff line number Diff line change 33
44## 注:
55v2.7.0 到 v2.9.2 不支持取消过期时间配置,如果过期天数配置为 0 会立即删除文件。
6- v2.9.3 开始,过期天数配置为 0 时为取消过期时间配置。
6+ v2.10.0 开始,过期天数配置为 0 时为取消过期时间配置。
77
88# 格式
99```
Original file line number Diff line number Diff line change 22` expire ` 指令用来为空间中的一个文件修改 ** 过期时间** 。(即多长时间后,该文件会被自动删除)
33
44## 注:
5- v2.7.0 到 v2.9.2 不支持取消过期时间配置,如果 DeleteAfterDays(过期天数)配置为 0 会立即删除文件。
6- v2.9.3 开始, DeleteAfterDays(过期天数)配置为 0 时为取消过期时间配置。
5+ v2.7.0 到 v2.9.2 不支持取消过期时间配置,如果过期天数配置为 0 会立即删除文件。
6+ v2.10.0 开始,过期天数配置为 0 时为取消过期时间配置。
77
88# 格式
99```
Original file line number Diff line number Diff line change 11package docs
22
3- import _ "embed"
4-
5- //go:embed qshell.md
6- var qshellDocument string
3+ import (
4+ "github.com/qiniu/qshell/v2"
5+ )
76
87const QShellType = "qshell"
98
109func init () {
11- addCmdDocumentInfo (QShellType , qshellDocument )
10+ addCmdDocumentInfo (QShellType , qshell . ReadMeDocument )
1211}
Load Diff This file was deleted.
File renamed without changes.
Original file line number Diff line number Diff line change 1+ package qshell
2+
3+ import _ "embed"
4+
5+ //go:embed README.md
6+ var ReadMeDocument string
You can’t perform that action at this time.
0 commit comments