refactor: 默认不开启进度条

This commit is contained in:
ZacharyZcR
2025-01-15 15:10:01 +08:00
parent 97e9ac7161
commit f20aadb745
4 changed files with 45 additions and 25 deletions
+6 -6
View File
@@ -930,12 +930,12 @@ var (
EnableWmi bool // 原IsWmi
// 输出配置
DisableSave bool // 禁止保存结果
Silent bool // 静默模式
NoColor bool // 禁用彩色输出
JsonFormat bool // JSON格式输出
LogLevel string // 日志输出级别
NoProgress bool // 禁用进度条显示
DisableSave bool // 禁止保存结果
Silent bool // 静默模式
NoColor bool // 禁用彩色输出
JsonFormat bool // JSON格式输出
LogLevel string // 日志输出级别
ShowProgress bool // 是否显示进度条
)
var (
+1 -1
View File
@@ -166,7 +166,7 @@ func Flag(Info *HostInfo) {
flag.BoolVar(&NoColor, "nocolor", false, "禁用彩色输出显示")
flag.BoolVar(&JsonFormat, "json", false, "以JSON格式输出结果")
flag.StringVar(&LogLevel, "log", LogLevelInfo, "日志输出级别(ALL/SUCCESS/ERROR/INFO/DEBUG)")
flag.BoolVar(&NoProgress, "nopg", false, "禁用进度条显示")
flag.BoolVar(&ShowProgress, "pg", false, "开启进度条显示")
flag.Parse()
}