Skip to content

Commit 0d0f0ce

Browse files
authored
Merge pull request #268 from sxci/update_readme
Update readme
2 parents dc04254 + d959a76 commit 0d0f0ce

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ qshell是利用[七牛文档上公开的API](http://developer.qiniu.com)实现
1414
1515
|版本 |支持平台|链接|
1616
|--------|---------|----|
17-
|qshell v2.4.1|Windows X86|[下载](http://devtools.qiniu.com/qshell-windows-x86-v2.4.1.exe.zip)
18-
|qshell v2.4.1|Windows amd64|[下载](http://devtools.qiniu.com/qshell-windows-x64-v2.4.1.exe.zip)
19-
|qshell v2.4.1|Linux X86|[下载](http://devtools.qiniu.com/qshell-linux-x86-v2.4.1.zip)
20-
|qshell v2.4.1|Linux amd64|[下载](http://devtools.qiniu.com/qshell-linux-x64-v2.4.1.zip)
21-
|qshell v2.4.1|Linux Arm|[下载](http://devtools.qiniu.com/qshell-linux-arm-v2.4.1.zip)
22-
|qshell v2.4.1|Mac OS |[下载](http://devtools.qiniu.com/qshell-darwin-x64-v2.4.1.zip)
17+
|qshell v2.4.2|Windows X86|[下载](http://devtools.qiniu.com/qshell-windows-x86-v2.4.2.exe.zip)
18+
|qshell v2.4.2|Windows amd64|[下载](http://devtools.qiniu.com/qshell-windows-x64-v2.4.2.exe.zip)
19+
|qshell v2.4.2|Linux X86|[下载](http://devtools.qiniu.com/qshell-linux-x86-v2.4.2.zip)
20+
|qshell v2.4.2|Linux amd64|[下载](http://devtools.qiniu.com/qshell-linux-x64-v2.4.2.zip)
21+
|qshell v2.4.2|Linux Arm|[下载](http://devtools.qiniu.com/qshell-linux-arm-v2.4.2.zip)
22+
|qshell v2.4.2|Mac OS |[下载](http://devtools.qiniu.com/qshell-darwin-x64-v2.4.2.zip)
2323

2424
## 安装
2525

cmd/root.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ import (
1818

1919
var (
2020
// 开启命令行的调试模式
21-
DebugFlag bool
21+
DebugFlag bool
22+
DeepDebugInfo bool
2223

2324
// qshell 版本信息, qshell -v
2425
VersionFlag bool
@@ -69,6 +70,7 @@ func init() {
6970
cobra.OnInitialize(initConfig)
7071

7172
RootCmd.PersistentFlags().BoolVarP(&DebugFlag, "debug", "d", false, "debug mode")
73+
RootCmd.PersistentFlags().BoolVarP(&DeepDebugInfo, "ddebug", "D", false, "deep debug mode")
7274
RootCmd.PersistentFlags().BoolVarP(&VersionFlag, "version", "v", false, "show version")
7375
RootCmd.PersistentFlags().StringVarP(&cfgFile, "config", "C", "", "config file (default is $HOME/.qshell.json)")
7476
RootCmd.PersistentFlags().BoolVarP(&local, "local", "L", false, "use current directory as config file path")
@@ -83,10 +85,15 @@ func initConfig() {
8385
//set qshell user agent
8486
storage.UserAgent = UserAgent()
8587

88+
if DeepDebugInfo {
89+
DebugFlag = true
90+
}
8691
//parse command
8792
if DebugFlag {
8893
logs.SetLevel(logs.LevelDebug)
8994
client.TurnOnDebug()
95+
// master 已合并, v7.5.0 分支没包含次参数,等待 v7.5.1
96+
// client.DeepDebugInfo = DeepDebugInfo
9097
} else {
9198
logs.SetLevel(logs.LevelInformational)
9299
}

0 commit comments

Comments
 (0)