From 090fbb19fd26b22118916a5e352092614bc53238 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Apr 2023 03:01:17 +0000 Subject: [PATCH 01/17] Bump github.com/essentialkaos/ek/v12 from 12.63.0 to 12.64.0 Bumps [github.com/essentialkaos/ek/v12](https://github.com/essentialkaos/ek) from 12.63.0 to 12.64.0. - [Release notes](https://github.com/essentialkaos/ek/releases) - [Changelog](https://github.com/essentialkaos/ek/blob/master/CHANGELOG.md) - [Commits](https://github.com/essentialkaos/ek/compare/v12.63.0...v12.64.0) --- updated-dependencies: - dependency-name: github.com/essentialkaos/ek/v12 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index ec608cf..224e477 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/essentialkaos/depsy v1.0.0 - github.com/essentialkaos/ek/v12 v12.63.0 + github.com/essentialkaos/ek/v12 v12.64.0 github.com/essentialkaos/sslscan/v13 v13.1.4 ) diff --git a/go.sum b/go.sum index cc579b1..199261b 100644 --- a/go.sum +++ b/go.sum @@ -4,8 +4,8 @@ github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHG github.com/essentialkaos/check v1.4.0 h1:kWdFxu9odCxUqo1NNFNJmguGrDHgwi3A8daXX1nkuKk= github.com/essentialkaos/depsy v1.0.0 h1:FikBtTnNhk+xFO/hFr+CfiKs6QnA3wMD6tGL0XTEUkc= github.com/essentialkaos/depsy v1.0.0/go.mod h1:XVsB2eVUonEzmLKQP3ig2P6v2+WcHVgJ10zm0JLqFMM= -github.com/essentialkaos/ek/v12 v12.63.0 h1:9yaEu5W3bx//9y52ShqYCoFDKOcwEdrnvgSkUYyatgI= -github.com/essentialkaos/ek/v12 v12.63.0/go.mod h1:9MlSuHpewu7OZ9tM9dLFHvoA8dflBIUPCA0Ctt97wRs= +github.com/essentialkaos/ek/v12 v12.64.0 h1:5HgBltCfY4uwsSFSv+yVBns6UIzXbiNEE31kcm/0UyA= +github.com/essentialkaos/ek/v12 v12.64.0/go.mod h1:9MlSuHpewu7OZ9tM9dLFHvoA8dflBIUPCA0Ctt97wRs= github.com/essentialkaos/sslscan/v13 v13.1.4 h1:MQaaVdp7TRBP92ci90vIq1x9BZfKfrfdMMdhAOSrrsY= github.com/essentialkaos/sslscan/v13 v13.1.4/go.mod h1:xAzDhR8d+QyugSLJoWvUH1MCz7seaLUwayIqRCEjFGg= github.com/klauspost/compress v1.15.9/go.mod h1:PhcZ0MbTNciWF3rruxRgKxI5NkcHHrHUDtV4Yw2GlzU= From dd6ba397ccefbf1469fdaf9ebd4c14da9bce066c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Apr 2023 09:48:20 +0000 Subject: [PATCH 02/17] Bump github.com/essentialkaos/sslscan/v13 from 13.1.4 to 13.1.5 Bumps [github.com/essentialkaos/sslscan/v13](https://github.com/essentialkaos/sslscan) from 13.1.4 to 13.1.5. - [Release notes](https://github.com/essentialkaos/sslscan/releases) - [Commits](https://github.com/essentialkaos/sslscan/compare/v13.1.4...v13.1.5) --- updated-dependencies: - dependency-name: github.com/essentialkaos/sslscan/v13 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- go.mod | 6 +++--- go.sum | 29 +++++++---------------------- 2 files changed, 10 insertions(+), 25 deletions(-) diff --git a/go.mod b/go.mod index 224e477..aaee5ba 100644 --- a/go.mod +++ b/go.mod @@ -5,13 +5,13 @@ go 1.19 require ( github.com/essentialkaos/depsy v1.0.0 github.com/essentialkaos/ek/v12 v12.64.0 - github.com/essentialkaos/sslscan/v13 v13.1.4 + github.com/essentialkaos/sslscan/v13 v13.1.5 ) require ( github.com/andybalholm/brotli v1.0.5 // indirect - github.com/klauspost/compress v1.16.0 // indirect + github.com/klauspost/compress v1.16.3 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect - github.com/valyala/fasthttp v1.44.0 // indirect + github.com/valyala/fasthttp v1.45.0 // indirect golang.org/x/sys v0.6.0 // indirect ) diff --git a/go.sum b/go.sum index 199261b..d301e46 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,3 @@ -github.com/andybalholm/brotli v1.0.4/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= github.com/andybalholm/brotli v1.0.5 h1:8uQZIdzKmjc/iuPu7O2ioW48L81FgatrcpfFmiq/cCs= github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= github.com/essentialkaos/check v1.4.0 h1:kWdFxu9odCxUqo1NNFNJmguGrDHgwi3A8daXX1nkuKk= @@ -6,30 +5,16 @@ github.com/essentialkaos/depsy v1.0.0 h1:FikBtTnNhk+xFO/hFr+CfiKs6QnA3wMD6tGL0XT github.com/essentialkaos/depsy v1.0.0/go.mod h1:XVsB2eVUonEzmLKQP3ig2P6v2+WcHVgJ10zm0JLqFMM= github.com/essentialkaos/ek/v12 v12.64.0 h1:5HgBltCfY4uwsSFSv+yVBns6UIzXbiNEE31kcm/0UyA= github.com/essentialkaos/ek/v12 v12.64.0/go.mod h1:9MlSuHpewu7OZ9tM9dLFHvoA8dflBIUPCA0Ctt97wRs= -github.com/essentialkaos/sslscan/v13 v13.1.4 h1:MQaaVdp7TRBP92ci90vIq1x9BZfKfrfdMMdhAOSrrsY= -github.com/essentialkaos/sslscan/v13 v13.1.4/go.mod h1:xAzDhR8d+QyugSLJoWvUH1MCz7seaLUwayIqRCEjFGg= -github.com/klauspost/compress v1.15.9/go.mod h1:PhcZ0MbTNciWF3rruxRgKxI5NkcHHrHUDtV4Yw2GlzU= -github.com/klauspost/compress v1.16.0 h1:iULayQNOReoYUe+1qtKOqw9CwJv3aNQu8ivo7lw1HU4= -github.com/klauspost/compress v1.16.0/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= +github.com/essentialkaos/sslscan/v13 v13.1.5 h1:gw+3BNv2dp/6iNUEP1HTYKUiapqcwqJHmQQb7evx6+0= +github.com/essentialkaos/sslscan/v13 v13.1.5/go.mod h1:kh0bzr6C8i33Bbcj510nGJ+UcAD6pvZSIfLZS89fD00= +github.com/klauspost/compress v1.16.3 h1:XuJt9zzcnaz6a16/OU53ZjWp/v7/42WcR5t2a0PcNQY= +github.com/klauspost/compress v1.16.3/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= +github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= -github.com/valyala/fasthttp v1.44.0 h1:R+gLUhldIsfg1HokMuQjdQ5bh9nuXHPIfvkYUu9eR5Q= -github.com/valyala/fasthttp v1.44.0/go.mod h1:f6VbjjoI3z1NDOZOv17o6RvtRSWxC77seBFc2uWtgiY= -github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc= -golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20220906165146-f3363e06e74c/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +github.com/valyala/fasthttp v1.45.0 h1:zPkkzpIn8tdHZUrVa6PzYd0i5verqiPSkgTd3bSUcpA= +github.com/valyala/fasthttp v1.45.0/go.mod h1:k2zXd82h/7UZc3VOdJ2WaUqt1uZ/XpXAfE9i+HBC3lA= golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= From 5df42bdcd2bc1cb0829a729115011b66465dd1bb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 11 Apr 2023 03:59:54 +0000 Subject: [PATCH 03/17] Bump essentialkaos/aligo-action from 1 to 2 Bumps [essentialkaos/aligo-action](https://github.com/essentialkaos/aligo-action) from 1 to 2. - [Release notes](https://github.com/essentialkaos/aligo-action/releases) - [Commits](https://github.com/essentialkaos/aligo-action/compare/v1...v2) --- updated-dependencies: - dependency-name: essentialkaos/aligo-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9340875..cc0599d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -77,7 +77,7 @@ jobs: run: make deps - name: Check Golang sources with Aligo - uses: essentialkaos/aligo-action@v1 + uses: essentialkaos/aligo-action@v2 with: path: ${{env.SRC_DIR}} files: ./... From ae88bcd353762cd72643dc359c6f1fccfa9aced4 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Tue, 18 Apr 2023 17:04:15 +0300 Subject: [PATCH 04/17] Improve README --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 5f13cc3..693f8d9 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ #### From source -To build the SSLScan Client from scratch, make sure you have a working Go 1.19+ workspace ([instructions](https://golang.org/doc/install)), then: +To build the SSLScan Client from scratch, make sure you have a working Go 1.19+ workspace ([instructions](https://go.dev/doc/install)), then: ``` go install github.com/essentialkaos/sslcli@latest @@ -50,10 +50,8 @@ bash <(curl -fsSL https://apps.kaos.st/get) sslcli The latest version of `sslcli` also available as container image on [GitHub Container Registry](https://kaos.sh/p/sslcli) and [Docker Hub](https://kaos.sh/d/sslcli): ```bash -podman pull ghcr.io/essentialkaos/sslcli:latest podman run --rm -it ghcr.io/essentialkaos/sslcli:latest mydomain.com # or -docker pull ghcr.io/essentialkaos/sslcli:latest docker run --rm -it ghcr.io/essentialkaos/sslcli:latest mydomain.com ``` From bc52e32300395e818d8b57ed318fcf60422bdf6b Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Tue, 18 Apr 2023 17:05:48 +0300 Subject: [PATCH 05/17] Dependencies update --- go.mod | 6 +++--- go.sum | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/go.mod b/go.mod index aaee5ba..3dd0478 100644 --- a/go.mod +++ b/go.mod @@ -4,14 +4,14 @@ go 1.19 require ( github.com/essentialkaos/depsy v1.0.0 - github.com/essentialkaos/ek/v12 v12.64.0 + github.com/essentialkaos/ek/v12 v12.64.1 github.com/essentialkaos/sslscan/v13 v13.1.5 ) require ( github.com/andybalholm/brotli v1.0.5 // indirect - github.com/klauspost/compress v1.16.3 // indirect + github.com/klauspost/compress v1.16.5 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect github.com/valyala/fasthttp v1.45.0 // indirect - golang.org/x/sys v0.6.0 // indirect + golang.org/x/sys v0.7.0 // indirect ) diff --git a/go.sum b/go.sum index d301e46..83a5dd1 100644 --- a/go.sum +++ b/go.sum @@ -3,12 +3,12 @@ github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHG github.com/essentialkaos/check v1.4.0 h1:kWdFxu9odCxUqo1NNFNJmguGrDHgwi3A8daXX1nkuKk= github.com/essentialkaos/depsy v1.0.0 h1:FikBtTnNhk+xFO/hFr+CfiKs6QnA3wMD6tGL0XTEUkc= github.com/essentialkaos/depsy v1.0.0/go.mod h1:XVsB2eVUonEzmLKQP3ig2P6v2+WcHVgJ10zm0JLqFMM= -github.com/essentialkaos/ek/v12 v12.64.0 h1:5HgBltCfY4uwsSFSv+yVBns6UIzXbiNEE31kcm/0UyA= -github.com/essentialkaos/ek/v12 v12.64.0/go.mod h1:9MlSuHpewu7OZ9tM9dLFHvoA8dflBIUPCA0Ctt97wRs= +github.com/essentialkaos/ek/v12 v12.64.1 h1:XjIF4GHCgVIY0S0KEz8g1OrNrRoHGU+vAUXSYIKNIbI= +github.com/essentialkaos/ek/v12 v12.64.1/go.mod h1:PFJckNu+x4mHqsjndUeYRDPgDgvZEgcjpy1RpCYtx4g= github.com/essentialkaos/sslscan/v13 v13.1.5 h1:gw+3BNv2dp/6iNUEP1HTYKUiapqcwqJHmQQb7evx6+0= github.com/essentialkaos/sslscan/v13 v13.1.5/go.mod h1:kh0bzr6C8i33Bbcj510nGJ+UcAD6pvZSIfLZS89fD00= -github.com/klauspost/compress v1.16.3 h1:XuJt9zzcnaz6a16/OU53ZjWp/v7/42WcR5t2a0PcNQY= -github.com/klauspost/compress v1.16.3/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= +github.com/klauspost/compress v1.16.5 h1:IFV2oUNUzZaz+XyusxpLzpzS8Pt5rh0Z16For/djlyI= +github.com/klauspost/compress v1.16.5/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= @@ -16,5 +16,5 @@ github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6Kllzaw github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= github.com/valyala/fasthttp v1.45.0 h1:zPkkzpIn8tdHZUrVa6PzYd0i5verqiPSkgTd3bSUcpA= github.com/valyala/fasthttp v1.45.0/go.mod h1:k2zXd82h/7UZc3VOdJ2WaUqt1uZ/XpXAfE9i+HBC3lA= -golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= -golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU= +golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= From a70e391b38a15e6baa7e7e238cdd69876597a1a5 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Tue, 18 Apr 2023 17:10:43 +0300 Subject: [PATCH 06/17] Fix typos --- cli/cli.go | 6 +++--- cli/details.go | 2 +- cli/encoder.go | 4 ++-- common/sslcli.spec | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cli/cli.go b/cli/cli.go index f9253fa..9499ea9 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -85,7 +85,7 @@ type HostCheckInfo struct { } type EndpointCheckInfo struct { - IPAdress string `json:"ipAddress"` + IPAddress string `json:"ipAddress"` Grade string `json:"grade"` GradeNum float64 `json:"gradeNum"` } @@ -477,7 +477,7 @@ func getColoredGrades(endpoints []*sslscan.EndpointInfo) string { var result string for _, endpoint := range endpoints { - result += getColoredGrade(endpoint.Grade) + "{s-}/" + endpoint.IPAdress + "{!} " + result += getColoredGrade(endpoint.Grade) + "{s-}/" + endpoint.IPAddress + "{!} " } return result @@ -572,7 +572,7 @@ func appendEndpointsInfo(checkInfo *HostCheckInfo, endpoints []*sslscan.Endpoint grade := getNormGrade(endpoint.Grade) checkInfo.Endpoints = append(checkInfo.Endpoints, &EndpointCheckInfo{ - IPAdress: endpoint.IPAdress, + IPAddress: endpoint.IPAddress, Grade: grade, GradeNum: gradeNumMap[grade], }) diff --git a/cli/details.go b/cli/details.go index 9b33a09..9a09157 100644 --- a/cli/details.go +++ b/cli/details.go @@ -74,7 +74,7 @@ func printDetailedInfo(ap *sslscan.AnalyzeProgress, fromCache bool) { printCertificateInfo(info.Certs, info.Endpoints) for index, endpoint := range info.Endpoints { - fmtc.Printf("\n{c*} %s {!*}#%d (%s){!}\n", info.Host, index+1, endpoint.IPAdress) + fmtc.Printf("\n{c*} %s {!*}#%d (%s){!}\n", info.Host, index+1, endpoint.IPAddress) printDetailedEndpointInfo(endpoint, info.Certs) } } diff --git a/cli/encoder.go b/cli/encoder.go index 7b42a8b..fbac2b1 100644 --- a/cli/encoder.go +++ b/cli/encoder.go @@ -57,7 +57,7 @@ func encodeAsXML(checksInfo []*HostCheckInfo) { for _, endpoint := range info.Endpoints { fmt.Printf( " \n", - endpoint.IPAdress, endpoint.Grade, endpoint.GradeNum, + endpoint.IPAddress, endpoint.Grade, endpoint.GradeNum, ) } @@ -84,7 +84,7 @@ func encodeAsYAML(checksInfo []*HostCheckInfo) { fmt.Println(" -") fmt.Printf(" grade: %s\n", endpoint.Grade) fmt.Printf(" gradeNum: %.1f\n", endpoint.GradeNum) - fmt.Printf(" ipAddress: \"%s\"\n", endpoint.IPAdress) + fmt.Printf(" ipAddress: \"%s\"\n", endpoint.IPAddress) } fmt.Printf(" host: %s\n", info.Host) diff --git a/common/sslcli.spec b/common/sslcli.spec index fa90524..2badce9 100644 --- a/common/sslcli.spec +++ b/common/sslcli.spec @@ -212,7 +212,7 @@ fi * Tue Oct 11 2016 Anton Novojilov - 1.1.0-0 - EK package updated to v5 -- SSLScan package udated to v2 +- SSLScan package updated to v2 * Fri Sep 23 2016 Anton Novojilov - 1.0.2-0 - Minor UI improvements From 685808f624e26327d851f909c8745565c4f0f0c5 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Tue, 18 Apr 2023 17:13:51 +0300 Subject: [PATCH 07/17] Improve CI workflow --- .github/workflows/ci.yml | 36 +++++++++++++++++++----------------- .typos.toml | 2 ++ 2 files changed, 21 insertions(+), 17 deletions(-) create mode 100644 .typos.toml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc0599d..b78bb52 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,9 +24,6 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true -env: - SRC_DIR: src/github.com/${{ github.repository }} - jobs: Go: name: Go @@ -37,22 +34,18 @@ jobs: go: [ '1.19.x', '1.20.x' ] steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set up Go uses: actions/setup-go@v4 with: go-version: ${{ matrix.go }} - - name: Checkout - uses: actions/checkout@v3 - with: - path: ${{env.SRC_DIR}} - - name: Download dependencies - working-directory: ${{env.SRC_DIR}} run: make deps - name: Build binary - working-directory: ${{env.SRC_DIR}} run: make all Aligo: @@ -62,24 +55,20 @@ jobs: needs: Go steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set up Go uses: actions/setup-go@v4 with: go-version: '1.19.x' - - name: Checkout - uses: actions/checkout@v3 - with: - path: ${{env.SRC_DIR}} - - name: Download dependencies - working-directory: ${{env.SRC_DIR}} run: make deps - name: Check Golang sources with Aligo uses: essentialkaos/aligo-action@v2 with: - path: ${{env.SRC_DIR}} files: ./... Perfecto: @@ -119,6 +108,19 @@ jobs: with: files: .docker/*.docker + Typos: + name: Typos + runs-on: ubuntu-latest + + needs: Go + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Check spelling + uses: crate-ci/typos@master + DockerBuild: name: Docker Build Check runs-on: ubuntu-latest diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 0000000..55aead8 --- /dev/null +++ b/.typos.toml @@ -0,0 +1,2 @@ +[files] +extend-exclude = ["go.sum"] From bb76b0e05df15f4f90a3d9f54fb1c5cb214e83e1 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Tue, 18 Apr 2023 23:03:06 +0300 Subject: [PATCH 08/17] Dependencies update --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 3dd0478..4b5cdbd 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.19 require ( github.com/essentialkaos/depsy v1.0.0 github.com/essentialkaos/ek/v12 v12.64.1 - github.com/essentialkaos/sslscan/v13 v13.1.5 + github.com/essentialkaos/sslscan/v13 v13.2.0 ) require ( diff --git a/go.sum b/go.sum index 83a5dd1..31300c1 100644 --- a/go.sum +++ b/go.sum @@ -5,8 +5,8 @@ github.com/essentialkaos/depsy v1.0.0 h1:FikBtTnNhk+xFO/hFr+CfiKs6QnA3wMD6tGL0XT github.com/essentialkaos/depsy v1.0.0/go.mod h1:XVsB2eVUonEzmLKQP3ig2P6v2+WcHVgJ10zm0JLqFMM= github.com/essentialkaos/ek/v12 v12.64.1 h1:XjIF4GHCgVIY0S0KEz8g1OrNrRoHGU+vAUXSYIKNIbI= github.com/essentialkaos/ek/v12 v12.64.1/go.mod h1:PFJckNu+x4mHqsjndUeYRDPgDgvZEgcjpy1RpCYtx4g= -github.com/essentialkaos/sslscan/v13 v13.1.5 h1:gw+3BNv2dp/6iNUEP1HTYKUiapqcwqJHmQQb7evx6+0= -github.com/essentialkaos/sslscan/v13 v13.1.5/go.mod h1:kh0bzr6C8i33Bbcj510nGJ+UcAD6pvZSIfLZS89fD00= +github.com/essentialkaos/sslscan/v13 v13.2.0 h1:myHahuvrPkjIL9PKGeaBz+8NglpWE55WsvRgQ1QDS8A= +github.com/essentialkaos/sslscan/v13 v13.2.0/go.mod h1:8gPBJnA41juOmUsqGol0dJysXJ1+baXNgGqGp0AYvZs= github.com/klauspost/compress v1.16.5 h1:IFV2oUNUzZaz+XyusxpLzpzS8Pt5rh0Z16For/djlyI= github.com/klauspost/compress v1.16.5/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= From 02789921d11bbd22b4d954e1fa8bb5e56c4d56fd Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Thu, 27 Apr 2023 12:55:59 +0300 Subject: [PATCH 09/17] Fix the bug with showing the number of validity days --- cli/cli.go | 10 +++++----- cli/details.go | 9 ++++++--- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/cli/cli.go b/cli/cli.go index 9499ea9..0e257c2 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -38,7 +38,7 @@ import ( const ( APP = "SSLScan Client" - VER = "2.7.4" + VER = "2.7.5" DESC = "Command-line client for the SSL Labs API" ) @@ -86,8 +86,8 @@ type HostCheckInfo struct { type EndpointCheckInfo struct { IPAddress string `json:"ipAddress"` - Grade string `json:"grade"` - GradeNum float64 `json:"gradeNum"` + Grade string `json:"grade"` + GradeNum float64 `json:"gradeNum"` } // ////////////////////////////////////////////////////////////////////////////////// // @@ -573,8 +573,8 @@ func appendEndpointsInfo(checkInfo *HostCheckInfo, endpoints []*sslscan.Endpoint checkInfo.Endpoints = append(checkInfo.Endpoints, &EndpointCheckInfo{ IPAddress: endpoint.IPAddress, - Grade: grade, - GradeNum: gradeNumMap[grade], + Grade: grade, + GradeNum: gradeNumMap[grade], }) } } diff --git a/cli/details.go b/cli/details.go index 9a09157..5a7dfa8 100644 --- a/cli/details.go +++ b/cli/details.go @@ -333,8 +333,9 @@ func printCertValidityInfo(cert *sslscan.Cert) { ) } else { fmtc.Printf( - "%s {s-}(expires in %s){!}\n", + "%s {s-}(expires in %s %s){!}\n", timeutil.Format(validUntilDate, "%Y/%m/%d %H:%M:%S"), + fmtutil.PrettyNum(validDays), pluralize.Pluralize(int(validDays), "day", "days"), ) } @@ -503,8 +504,9 @@ func printChainCertInfo(cert *sslscan.Cert) { fmtc.Printf(" %-24s {s}|{!} {s-}Pin: %s{!}\n", "", cert.PINSHA256) fmtc.Printf( - " %-24s {s}|{!} %s {s-}(expires in %s){!}\n", "Valid until", + " %-24s {s}|{!} %s {s-}(expires in %s %s){!}\n", "Valid until", timeutil.Format(validUntilDate, "%Y/%m/%d %H:%M:%S"), + fmtutil.PrettyNum(validDays), pluralize.Pluralize(int(validDays), "day", "days"), ) @@ -1506,7 +1508,8 @@ func getExpiryMessage(ap *sslscan.AnalyzeProgress, dur int64) string { validDays := (validUntilDate.Unix() - time.Now().Unix()) / 86400 return fmt.Sprintf( - " {r}(expires in %s){!}", + " {r}(expires in %s %s){!}", + fmtutil.PrettyNum(validDays), pluralize.Pluralize(int(validDays), "day", "days"), ) } From 1476b0fa075202ac7fc3bc5497f8c471a946c292 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Thu, 27 Apr 2023 13:03:44 +0300 Subject: [PATCH 10/17] Update spec --- common/sslcli.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/common/sslcli.spec b/common/sslcli.spec index 2badce9..fb529d0 100644 --- a/common/sslcli.spec +++ b/common/sslcli.spec @@ -10,7 +10,7 @@ Summary: Pretty awesome command-line client for public SSLLabs API Name: sslcli -Version: 2.7.4 +Version: 2.7.5 Release: 0%{?dist} Group: Applications/System License: Apache License, Version 2.0 @@ -22,7 +22,7 @@ Source100: checksum.sha512 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: golang >= 1.19 +BuildRequires: golang >= 1.20 Provides: %{name} = %{version}-%{release} @@ -101,6 +101,10 @@ fi ################################################################################ %changelog +* Thu Apr 27 2023 Anton Novojilov - 2.7.5-0 +- Fixed the bug with showing the number of certificate validity days +- Typos fixed + * Mon Mar 06 2023 Anton Novojilov - 2.7.4-0 - Added verbose info output - Dependencies update From 5ecd2d5b6122560633689669a85d02b3efdafd3e Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Thu, 27 Apr 2023 13:55:21 +0300 Subject: [PATCH 11/17] Update usage demo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 693f8d9..b3ae523 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ ### Usage demo -[![demo](https://gh.kaos.st/sslcli-200.gif)](#usage-demo) +[![demo](https://gh.kaos.st/sslcli-275.gif)](#usage-demo) ### Installation From 0c243775a12d8ae36e8028fc472319189259212f Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Thu, 27 Apr 2023 23:13:46 +0300 Subject: [PATCH 12/17] Fix the bug with text alignment if colors are disabled --- cli/cli.go | 4 ---- cli/details.go | 14 ++++++++++++-- common/sslcli.spec | 1 + go.mod | 4 ++-- go.sum | 8 ++++---- 5 files changed, 19 insertions(+), 12 deletions(-) diff --git a/cli/cli.go b/cli/cli.go index 0e257c2..0b8a2a4 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -182,10 +182,6 @@ func preConfigureUI() { } } - if !fsutil.IsCharacterDevice("/dev/stdout") && os.Getenv("FAKETTY") == "" { - fmtc.DisableColors = true - } - if os.Getenv("NO_COLOR") != "" { fmtc.DisableColors = true } diff --git a/cli/details.go b/cli/details.go index 5a7dfa8..ea67397 100644 --- a/cli/details.go +++ b/cli/details.go @@ -639,9 +639,19 @@ func printSimulationInfo(sim *sslscan.SIM, suites []*sslscan.ProtocolSuites) { } if sim.Client.IsReference { - fmtc.Printf(" %-29s {s}|{!} ", sim.Client.Name+" "+sim.Client.Version+" "+fmtc.Sprintf("{g}R")) + fmtc.Printf( + " %s {s}|{!} ", + fmtutil.Align(fmtc.Sprintf( + "%s %s {g}R{!}", sim.Client.Name, sim.Client.Version, + ), fmtutil.LEFT, 20), + ) } else { - fmtc.Printf(" %-20s {s}|{!} ", sim.Client.Name+" "+sim.Client.Version) + fmtc.Printf( + " %s {s}|{!} ", + fmtutil.Align(fmtc.Sprintf( + "%s %s", sim.Client.Name, sim.Client.Version, + ), fmtutil.LEFT, 20), + ) } switch protocolsNames[sim.ProtocolID] { diff --git a/common/sslcli.spec b/common/sslcli.spec index fb529d0..dff9065 100644 --- a/common/sslcli.spec +++ b/common/sslcli.spec @@ -103,6 +103,7 @@ fi %changelog * Thu Apr 27 2023 Anton Novojilov - 2.7.5-0 - Fixed the bug with showing the number of certificate validity days +- Fixed the bug with text alignment if colors are disabled - Typos fixed * Mon Mar 06 2023 Anton Novojilov - 2.7.4-0 diff --git a/go.mod b/go.mod index 4b5cdbd..9184c90 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/essentialkaos/depsy v1.0.0 - github.com/essentialkaos/ek/v12 v12.64.1 + github.com/essentialkaos/ek/v12 v12.65.0 github.com/essentialkaos/sslscan/v13 v13.2.0 ) @@ -12,6 +12,6 @@ require ( github.com/andybalholm/brotli v1.0.5 // indirect github.com/klauspost/compress v1.16.5 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect - github.com/valyala/fasthttp v1.45.0 // indirect + github.com/valyala/fasthttp v1.46.0 // indirect golang.org/x/sys v0.7.0 // indirect ) diff --git a/go.sum b/go.sum index 31300c1..0a03f63 100644 --- a/go.sum +++ b/go.sum @@ -3,8 +3,8 @@ github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHG github.com/essentialkaos/check v1.4.0 h1:kWdFxu9odCxUqo1NNFNJmguGrDHgwi3A8daXX1nkuKk= github.com/essentialkaos/depsy v1.0.0 h1:FikBtTnNhk+xFO/hFr+CfiKs6QnA3wMD6tGL0XTEUkc= github.com/essentialkaos/depsy v1.0.0/go.mod h1:XVsB2eVUonEzmLKQP3ig2P6v2+WcHVgJ10zm0JLqFMM= -github.com/essentialkaos/ek/v12 v12.64.1 h1:XjIF4GHCgVIY0S0KEz8g1OrNrRoHGU+vAUXSYIKNIbI= -github.com/essentialkaos/ek/v12 v12.64.1/go.mod h1:PFJckNu+x4mHqsjndUeYRDPgDgvZEgcjpy1RpCYtx4g= +github.com/essentialkaos/ek/v12 v12.65.0 h1:OYs8HrVxzzG8CYW9s2wc6Ihfg+ZAnMGB94xzVEC+NMU= +github.com/essentialkaos/ek/v12 v12.65.0/go.mod h1:PFJckNu+x4mHqsjndUeYRDPgDgvZEgcjpy1RpCYtx4g= github.com/essentialkaos/sslscan/v13 v13.2.0 h1:myHahuvrPkjIL9PKGeaBz+8NglpWE55WsvRgQ1QDS8A= github.com/essentialkaos/sslscan/v13 v13.2.0/go.mod h1:8gPBJnA41juOmUsqGol0dJysXJ1+baXNgGqGp0AYvZs= github.com/klauspost/compress v1.16.5 h1:IFV2oUNUzZaz+XyusxpLzpzS8Pt5rh0Z16For/djlyI= @@ -14,7 +14,7 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= -github.com/valyala/fasthttp v1.45.0 h1:zPkkzpIn8tdHZUrVa6PzYd0i5verqiPSkgTd3bSUcpA= -github.com/valyala/fasthttp v1.45.0/go.mod h1:k2zXd82h/7UZc3VOdJ2WaUqt1uZ/XpXAfE9i+HBC3lA= +github.com/valyala/fasthttp v1.46.0 h1:6ZRhrFg8zBXTRYY6vdzbFhqsBd7FVv123pV2m9V87U4= +github.com/valyala/fasthttp v1.46.0/go.mod h1:k2zXd82h/7UZc3VOdJ2WaUqt1uZ/XpXAfE9i+HBC3lA= golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU= golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= From 25e085129c39bb93d7cf8d23c3ba7d78e46bd5c3 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Thu, 27 Apr 2023 23:19:50 +0300 Subject: [PATCH 13/17] Minor output improvement --- cli/details.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cli/details.go b/cli/details.go index ea67397..1818ad7 100644 --- a/cli/details.go +++ b/cli/details.go @@ -14,6 +14,7 @@ import ( "github.com/essentialkaos/ek/v12/fmtc" "github.com/essentialkaos/ek/v12/fmtutil" + "github.com/essentialkaos/ek/v12/httputil" "github.com/essentialkaos/ek/v12/pluralize" "github.com/essentialkaos/ek/v12/sliceutil" "github.com/essentialkaos/ek/v12/strutil" @@ -1190,7 +1191,11 @@ func printTestInfo(info *sslscan.EndpointInfo) { if details.HTTPStatusCode == 0 { fmtc.Printf(" %-24s {s}|{!} {y}Request failed{!}\n", "HTTP status code") } else { - fmtc.Printf(" %-24s {s}|{!} %d\n", "HTTP status code", details.HTTPStatusCode) + fmtc.Printf( + " %-24s {s}|{!} %d {s-}(%s){!}\n", "HTTP status code", + details.HTTPStatusCode, + httputil.GetDescByCode(details.HTTPStatusCode), + ) } } From c443d5daec2a52d4a099d505a4b01e5e4792cc72 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 4 May 2023 02:59:52 +0000 Subject: [PATCH 14/17] Bump github.com/essentialkaos/ek/v12 from 12.65.0 to 12.66.0 Bumps [github.com/essentialkaos/ek/v12](https://github.com/essentialkaos/ek) from 12.65.0 to 12.66.0. - [Release notes](https://github.com/essentialkaos/ek/releases) - [Changelog](https://github.com/essentialkaos/ek/blob/master/CHANGELOG.md) - [Commits](https://github.com/essentialkaos/ek/compare/v12.65.0...v12.66.0) --- updated-dependencies: - dependency-name: github.com/essentialkaos/ek/v12 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 9184c90..b33c002 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/essentialkaos/depsy v1.0.0 - github.com/essentialkaos/ek/v12 v12.65.0 + github.com/essentialkaos/ek/v12 v12.66.0 github.com/essentialkaos/sslscan/v13 v13.2.0 ) diff --git a/go.sum b/go.sum index 0a03f63..be8fe69 100644 --- a/go.sum +++ b/go.sum @@ -3,8 +3,8 @@ github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHG github.com/essentialkaos/check v1.4.0 h1:kWdFxu9odCxUqo1NNFNJmguGrDHgwi3A8daXX1nkuKk= github.com/essentialkaos/depsy v1.0.0 h1:FikBtTnNhk+xFO/hFr+CfiKs6QnA3wMD6tGL0XTEUkc= github.com/essentialkaos/depsy v1.0.0/go.mod h1:XVsB2eVUonEzmLKQP3ig2P6v2+WcHVgJ10zm0JLqFMM= -github.com/essentialkaos/ek/v12 v12.65.0 h1:OYs8HrVxzzG8CYW9s2wc6Ihfg+ZAnMGB94xzVEC+NMU= -github.com/essentialkaos/ek/v12 v12.65.0/go.mod h1:PFJckNu+x4mHqsjndUeYRDPgDgvZEgcjpy1RpCYtx4g= +github.com/essentialkaos/ek/v12 v12.66.0 h1:g/eg9IPKFDYHt0v5qB3b9pBeSSZ+N7gJdxdOLXIPFLA= +github.com/essentialkaos/ek/v12 v12.66.0/go.mod h1:PFJckNu+x4mHqsjndUeYRDPgDgvZEgcjpy1RpCYtx4g= github.com/essentialkaos/sslscan/v13 v13.2.0 h1:myHahuvrPkjIL9PKGeaBz+8NglpWE55WsvRgQ1QDS8A= github.com/essentialkaos/sslscan/v13 v13.2.0/go.mod h1:8gPBJnA41juOmUsqGol0dJysXJ1+baXNgGqGp0AYvZs= github.com/klauspost/compress v1.16.5 h1:IFV2oUNUzZaz+XyusxpLzpzS8Pt5rh0Z16For/djlyI= From 90022b9a127f30bb5801facc01c7adaba87b3362 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Sun, 7 May 2023 11:43:38 +0300 Subject: [PATCH 15/17] Dependencies update --- go.mod | 6 +++--- go.sum | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/go.mod b/go.mod index b33c002..03a71e0 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/essentialkaos/depsy v1.0.0 - github.com/essentialkaos/ek/v12 v12.66.0 + github.com/essentialkaos/ek/v12 v12.67.0 github.com/essentialkaos/sslscan/v13 v13.2.0 ) @@ -12,6 +12,6 @@ require ( github.com/andybalholm/brotli v1.0.5 // indirect github.com/klauspost/compress v1.16.5 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect - github.com/valyala/fasthttp v1.46.0 // indirect - golang.org/x/sys v0.7.0 // indirect + github.com/valyala/fasthttp v1.47.0 // indirect + golang.org/x/sys v0.8.0 // indirect ) diff --git a/go.sum b/go.sum index be8fe69..2772fba 100644 --- a/go.sum +++ b/go.sum @@ -3,8 +3,8 @@ github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHG github.com/essentialkaos/check v1.4.0 h1:kWdFxu9odCxUqo1NNFNJmguGrDHgwi3A8daXX1nkuKk= github.com/essentialkaos/depsy v1.0.0 h1:FikBtTnNhk+xFO/hFr+CfiKs6QnA3wMD6tGL0XTEUkc= github.com/essentialkaos/depsy v1.0.0/go.mod h1:XVsB2eVUonEzmLKQP3ig2P6v2+WcHVgJ10zm0JLqFMM= -github.com/essentialkaos/ek/v12 v12.66.0 h1:g/eg9IPKFDYHt0v5qB3b9pBeSSZ+N7gJdxdOLXIPFLA= -github.com/essentialkaos/ek/v12 v12.66.0/go.mod h1:PFJckNu+x4mHqsjndUeYRDPgDgvZEgcjpy1RpCYtx4g= +github.com/essentialkaos/ek/v12 v12.67.0 h1:ii15t0O+3Mu7uI3Te5X5BIqYXi1V7ovtSIYi5LyiltU= +github.com/essentialkaos/ek/v12 v12.67.0/go.mod h1:sRgw+F7PeeoNsmLLVMKy5ccugwGSljk8/rTXC9dyT+M= github.com/essentialkaos/sslscan/v13 v13.2.0 h1:myHahuvrPkjIL9PKGeaBz+8NglpWE55WsvRgQ1QDS8A= github.com/essentialkaos/sslscan/v13 v13.2.0/go.mod h1:8gPBJnA41juOmUsqGol0dJysXJ1+baXNgGqGp0AYvZs= github.com/klauspost/compress v1.16.5 h1:IFV2oUNUzZaz+XyusxpLzpzS8Pt5rh0Z16For/djlyI= @@ -14,7 +14,7 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= -github.com/valyala/fasthttp v1.46.0 h1:6ZRhrFg8zBXTRYY6vdzbFhqsBd7FVv123pV2m9V87U4= -github.com/valyala/fasthttp v1.46.0/go.mod h1:k2zXd82h/7UZc3VOdJ2WaUqt1uZ/XpXAfE9i+HBC3lA= -golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU= -golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +github.com/valyala/fasthttp v1.47.0 h1:y7moDoxYzMooFpT5aHgNgVOQDrS3qlkfiP9mDtGGK9c= +github.com/valyala/fasthttp v1.47.0/go.mod h1:k2zXd82h/7UZc3VOdJ2WaUqt1uZ/XpXAfE9i+HBC3lA= +golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU= +golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= From 752b154b9cf1c94dafec606ce2da318d7e846ab6 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Wed, 10 May 2023 01:21:12 +0300 Subject: [PATCH 16/17] Custom version info formats support --- cli/cli.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/cli.go b/cli/cli.go index 0b8a2a4..243318f 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -104,7 +104,7 @@ var optMap = options.Map{ OPT_NOTIFY: {Type: options.BOOL}, OPT_NO_COLOR: {Type: options.BOOL}, OPT_HELP: {Type: options.BOOL}, - OPT_VER: {Type: options.BOOL}, + OPT_VER: {Type: options.MIXED}, OPT_VERB_VER: {Type: options.BOOL}, OPT_COMPLETION: {}, @@ -154,7 +154,7 @@ func Run(gitRev string, gomod []byte) { printMan() os.Exit(0) case options.GetB(OPT_VER): - genAbout(gitRev).Print() + genAbout(gitRev).Print(options.GetS(OPT_VER)) os.Exit(0) case options.GetB(OPT_VERB_VER): support.Print(APP, VER, gitRev, gomod) From 2a10e6e6c0f7fe935f064b4444e7819a18667044 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Thu, 11 May 2023 13:45:51 +0300 Subject: [PATCH 17/17] Dependencies update --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 03a71e0..ce29485 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/essentialkaos/sslcli go 1.19 require ( - github.com/essentialkaos/depsy v1.0.0 + github.com/essentialkaos/depsy v1.1.0 github.com/essentialkaos/ek/v12 v12.67.0 github.com/essentialkaos/sslscan/v13 v13.2.0 ) diff --git a/go.sum b/go.sum index 2772fba..f38d9ea 100644 --- a/go.sum +++ b/go.sum @@ -1,8 +1,8 @@ github.com/andybalholm/brotli v1.0.5 h1:8uQZIdzKmjc/iuPu7O2ioW48L81FgatrcpfFmiq/cCs= github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= github.com/essentialkaos/check v1.4.0 h1:kWdFxu9odCxUqo1NNFNJmguGrDHgwi3A8daXX1nkuKk= -github.com/essentialkaos/depsy v1.0.0 h1:FikBtTnNhk+xFO/hFr+CfiKs6QnA3wMD6tGL0XTEUkc= -github.com/essentialkaos/depsy v1.0.0/go.mod h1:XVsB2eVUonEzmLKQP3ig2P6v2+WcHVgJ10zm0JLqFMM= +github.com/essentialkaos/depsy v1.1.0 h1:U6dp687UkQwXlZU17Hg2KMxbp3nfZAoZ8duaeUFYvJI= +github.com/essentialkaos/depsy v1.1.0/go.mod h1:kpiTAV17dyByVnrbNaMcZt2jRwvuXClUYOzpyJQwtG8= github.com/essentialkaos/ek/v12 v12.67.0 h1:ii15t0O+3Mu7uI3Te5X5BIqYXi1V7ovtSIYi5LyiltU= github.com/essentialkaos/ek/v12 v12.67.0/go.mod h1:sRgw+F7PeeoNsmLLVMKy5ccugwGSljk8/rTXC9dyT+M= github.com/essentialkaos/sslscan/v13 v13.2.0 h1:myHahuvrPkjIL9PKGeaBz+8NglpWE55WsvRgQ1QDS8A=