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 63
63
goarch : ${{ matrix.goarch }}
64
64
goversion : " https://golang.org/dl/go1.20.1.linux-amd64.tar.gz"
65
65
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
2
2
1 . expire 与 batchexpire 命令调整,deleteAfterDay 为 0 时取消文件的过期删除配置
3
3
2 . 处理文件大小为 0 字节下载失败问题
4
4
3 . 私有云支持仅配置 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 (
7
7
)
8
8
9
9
func TestQShellDocument01 (t * testing.T ) {
10
- prefix := "# 简介 \n ` qshell` "
10
+ prefix := "# qshell"
11
11
result , _ := test .RunCmdWithError ()
12
12
if ! strings .HasPrefix (result , prefix ) {
13
13
t .Fatal ("document test fail for cmd: qshell" )
14
14
}
15
15
}
16
16
17
17
func TestQShellDocument02 (t * testing.T ) {
18
- prefix := "# 简介 \n ` qshell` "
18
+ prefix := "# qshell"
19
19
result , _ := test .RunCmdWithError ("--doc" )
20
20
if ! strings .HasPrefix (result , prefix ) {
21
21
t .Fatal ("document test fail for cmd: qshell" )
Original file line number Diff line number Diff line change 3
3
4
4
## 注:
5
5
v2.7.0 到 v2.9.2 不支持取消过期时间配置,如果过期天数配置为 0 会立即删除文件。
6
- v2.9.3 开始,过期天数配置为 0 时为取消过期时间配置。
6
+ v2.10.0 开始,过期天数配置为 0 时为取消过期时间配置。
7
7
8
8
# 格式
9
9
```
Original file line number Diff line number Diff line change 2
2
` expire ` 指令用来为空间中的一个文件修改 ** 过期时间** 。(即多长时间后,该文件会被自动删除)
3
3
4
4
## 注:
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 时为取消过期时间配置。
7
7
8
8
# 格式
9
9
```
Original file line number Diff line number Diff line change 1
1
package docs
2
2
3
- import _ "embed"
4
-
5
- //go:embed qshell.md
6
- var qshellDocument string
3
+ import (
4
+ "github.com/qiniu/qshell/v2"
5
+ )
7
6
8
7
const QShellType = "qshell"
9
8
10
9
func init () {
11
- addCmdDocumentInfo (QShellType , qshellDocument )
10
+ addCmdDocumentInfo (QShellType , qshell . ReadMeDocument )
12
11
}
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