Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ qshell是利用[七牛文档上公开的API](http://developer.qiniu.com)实现

|版本 |支持平台|链接|
|--------|---------|----|
|qshell v2.4.1|Windows X86|[下载](http://devtools.qiniu.com/qshell-windows-x86-v2.4.1.exe.zip)
|qshell v2.4.1|Windows amd64|[下载](http://devtools.qiniu.com/qshell-windows-x64-v2.4.1.exe.zip)
|qshell v2.4.1|Linux X86|[下载](http://devtools.qiniu.com/qshell-linux-x86-v2.4.1.zip)
|qshell v2.4.1|Linux amd64|[下载](http://devtools.qiniu.com/qshell-linux-x64-v2.4.1.zip)
|qshell v2.4.1|Linux Arm|[下载](http://devtools.qiniu.com/qshell-linux-arm-v2.4.1.zip)
|qshell v2.4.1|Mac OS |[下载](http://devtools.qiniu.com/qshell-darwin-x64-v2.4.1.zip)
|qshell v2.4.2|Windows X86|[下载](http://devtools.qiniu.com/qshell-windows-x86-v2.4.2.exe.zip)
|qshell v2.4.2|Windows amd64|[下载](http://devtools.qiniu.com/qshell-windows-x64-v2.4.2.exe.zip)
|qshell v2.4.2|Linux X86|[下载](http://devtools.qiniu.com/qshell-linux-x86-v2.4.2.zip)
|qshell v2.4.2|Linux amd64|[下载](http://devtools.qiniu.com/qshell-linux-x64-v2.4.2.zip)
|qshell v2.4.2|Linux Arm|[下载](http://devtools.qiniu.com/qshell-linux-arm-v2.4.2.zip)
|qshell v2.4.2|Mac OS |[下载](http://devtools.qiniu.com/qshell-darwin-x64-v2.4.2.zip)

## 安装

Expand Down
9 changes: 8 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ import (

var (
// 开启命令行的调试模式
DebugFlag bool
DebugFlag bool
DeepDebugInfo bool

// qshell 版本信息, qshell -v
VersionFlag bool
Expand Down Expand Up @@ -69,6 +70,7 @@ func init() {
cobra.OnInitialize(initConfig)

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

if DeepDebugInfo {
DebugFlag = true
}
//parse command
if DebugFlag {
logs.SetLevel(logs.LevelDebug)
client.TurnOnDebug()
// master 已合并, v7.5.0 分支没包含次参数,等待 v7.5.1
// client.DeepDebugInfo = DeepDebugInfo
} else {
logs.SetLevel(logs.LevelInformational)
}
Expand Down