Skip to content

Commit

Permalink
UI improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Dec 11, 2023
1 parent 295a53c commit 12edfc3
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,11 @@ func configureUI() {

switch {
case fmtc.IsTrueColorSupported():
colorTagApp, colorTagVer = "{*}{#875FFF}", "{#875FFF}"
colorTagApp, colorTagVer = "{*}{#00AFFF}", "{#00AFFF}"
case fmtc.Is256ColorsSupported():
colorTagApp, colorTagVer = "{*}{#99}", "{#99}"
colorTagApp, colorTagVer = "{*}{#39}", "{#39}"
default:
colorTagApp, colorTagVer = "{*}{b}", "{b}"
colorTagApp, colorTagVer = "{*}{c}", "{c}"
}
}

Expand Down Expand Up @@ -229,7 +229,7 @@ func process(args options.Arguments) (error, bool) {

if err != nil {
if !options.GetB(OPT_FORMAT) {
return err, false
return fmt.Errorf("Error while sending scan request to SSL Labs API: %v", err), false
}

return nil, false
Expand Down Expand Up @@ -305,25 +305,25 @@ func check(host string) (string, bool) {
IgnoreMismatch: options.GetB(OPT_IGNORE_MISMATCH),
}

fmtc.TPrintf("{*}%s{!} {s}Preparing for tests…{!}", host)
fmtc.TPrintf("{*}%s{!} {s-}→{!} {s}Preparing for tests…{!}", host)

ap, err := api.Analyze(host, params)

if err != nil {
fmtc.TPrintf("{*}%s{!} {r}%v{!}\n", host, err)
fmtc.TPrintf("{*}%s{!} {s-}→{!} {r}%v{!}\n", host, err)
return "T", false
}

for {
info, err = ap.Info(false, params.FromCache)

if err != nil {
fmtc.TPrintf("{*}%s{!} {r}%v{!}\n", host, err)
fmtc.TPrintf("{*}%s{!} {s-}→{!} {r}%v{!}\n", host, err)
return "Err", false
}

if info.Status == sslscan.STATUS_ERROR {
fmtc.TPrintf("{*}%s{!} {r}%s{!}\n", host, info.StatusMessage)
fmtc.TPrintf("{*}%s{!} {s-}→{!} {r}%s{!}\n", host, info.StatusMessage)
return "Err", false
} else if info.Status == sslscan.STATUS_READY {
break
Expand All @@ -333,7 +333,7 @@ func check(host string) (string, bool) {
message := getStatusInProgress(info.Endpoints)

if message != "" {
fmtc.TPrintf("{*}%s{!} {s}%s…{!}", host, message)
fmtc.TPrintf("{*}%s{!} {s-}→{!} {s}%s…{!}", host, message)
}
}

Expand Down

0 comments on commit 12edfc3

Please sign in to comment.