Skip to content

Commit

Permalink
Merge pull request #33 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Version 1.6.1
  • Loading branch information
andyone authored Dec 2, 2017
2 parents 31953f2 + aaa3be6 commit 776079b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ sudo: false
language: go

go:
- 1.6.x
- 1.7.x
- 1.8.x
- 1.9.x
- tip

branches:
Expand All @@ -21,6 +21,7 @@ matrix:
fast_finish: true
allow_failures:
- go: tip
- os: osx

before_install:
- make deps
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
########################################################################################
################################################################################

# This Makefile generated by GoMakeGen 0.6.0 using next command:
# This Makefile generated by GoMakeGen 0.6.1 using next command:
# gomakegen .

########################################################################################
################################################################################

.PHONY = fmt all clean deps

########################################################################################
################################################################################

all: sslcli

Expand All @@ -25,4 +25,4 @@ fmt:
clean:
rm -f sslcli

########################################################################################
################################################################################
14 changes: 6 additions & 8 deletions cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (

const (
APP = "SSLScan Client"
VER = "1.6.0"
VER = "1.6.1"
DESC = "Command-line client for the SSL Labs API"
)

Expand Down Expand Up @@ -242,18 +242,16 @@ func check(host string) string {
return "T"
}

t := &fmtc.T{}

for {
info, err = ap.Info()

if err != nil {
t.Printf("{r}%v{!}\n", err)
fmtc.TPrintf("{r}%v{!}\n", err)
return "Err"
}

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

if message != "" {
t.Printf("{s}%s...{!}", message)
fmtc.TPrintf("{s}%s...{!}", message)
}
}

Expand All @@ -275,9 +273,9 @@ func check(host string) string {
}

if len(info.Endpoints) == 1 {
t.Println(getColoredGrade(info.Endpoints[0].Grade))
fmtc.TPrintln(getColoredGrade(info.Endpoints[0].Grade))
} else {
t.Println(getColoredGrades(info.Endpoints))
fmtc.TPrintln(getColoredGrades(info.Endpoints))
}

if options.GetB(OPT_DETAILED) {
Expand Down
5 changes: 4 additions & 1 deletion common/sslcli.spec
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

Summary: Pretty awesome command-line client for public SSLLabs API
Name: sslcli
Version: 1.6.0
Version: 1.6.1
Release: 0%{?dist}
Group: Applications/System
License: EKOL
Expand Down Expand Up @@ -92,6 +92,9 @@ rm -rf %{buildroot}
###############################################################################

%changelog
* Sat Dec 02 2017 Anton Novojilov <[email protected]> - 1.6.1-0
- Updated compatibility with latest version of ek package

* Thu May 25 2017 Anton Novojilov <[email protected]> - 1.6.0-0
- ek package updated to v9
- sslscan package updated to v7
Expand Down

0 comments on commit 776079b

Please sign in to comment.