From 949178094ca4fbebb65d891bd70d8d4e4ab627e0 Mon Sep 17 00:00:00 2001 From: Mat Byczkowski Date: Wed, 26 Feb 2020 17:22:37 -0800 Subject: [PATCH] Version bump and go mod tidy (#212) --- cli/cli.go | 11 ++++++++--- go.mod | 4 +--- go.sum | 8 -------- 3 files changed, 9 insertions(+), 14 deletions(-) diff --git a/cli/cli.go b/cli/cli.go index 7e9def8..4082bfa 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -5,12 +5,13 @@ import ( "encoding/json" "encoding/pem" "fmt" + "os" + "strings" + "github.com/square/certigo/cli/terminal" "github.com/square/certigo/lib" "github.com/square/certigo/starttls" "gopkg.in/alecthomas/kingpin.v2" - "os" - "strings" ) var ( @@ -47,6 +48,10 @@ var ( verifyJSON = verify.Flag("json", "Write output as machine-readable JSON format.").Short('j').Bool() ) +const ( + version = "1.12.0" +) + func Run(args []string, tty terminal.Terminal) int { terminalWidth := tty.DetermineWidth() stdout := tty.Output() @@ -61,7 +66,7 @@ func Run(args []string, tty terminal.Terminal) int { } return 2 } - app.Version("1.11.0") + app.Version(version) // Alias starttls to start-tls connect.Flag("starttls", "").Hidden().EnumVar(connectStartTLS, starttls.Protocols...) diff --git a/go.mod b/go.mod index a251a66..c5df837 100644 --- a/go.mod +++ b/go.mod @@ -12,15 +12,13 @@ require ( github.com/huandu/xstrings v1.2.0 // indirect github.com/imdario/mergo v0.3.6 // indirect github.com/mattn/go-colorable v0.1.4 - github.com/mattn/go-isatty v0.0.12 + github.com/mattn/go-isatty v0.0.12 // indirect github.com/mitchellh/copystructure v1.0.0 // indirect github.com/mwitkow/go-http-dialer v0.0.0-20161116154839-378f744fb2b8 - github.com/pmezard/go-difflib v1.0.0 // indirect github.com/stretchr/testify v1.5.1 golang.org/x/crypto v0.0.0-20181015023909-0c41d7ab0a0e gopkg.in/alecthomas/kingpin.v2 v2.2.6 gopkg.in/asn1-ber.v1 v1.0.0-20170511165959-379148ca0225 - gopkg.in/yaml.v2 v2.2.1 // indirect ) go 1.13 diff --git a/go.sum b/go.sum index a9fd50c..18f4795 100644 --- a/go.sum +++ b/go.sum @@ -37,12 +37,6 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/objx v0.1.0 h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w= -github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= -github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/stretchr/testify v1.5.0 h1:DMOzIV76tmoDNE9pX6RSN0aDtCYeCg5VueieJaAo1uw= -github.com/stretchr/testify v1.5.0/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= golang.org/x/crypto v0.0.0-20181015023909-0c41d7ab0a0e h1:IzypfodbhbnViNUO/MEh0FzCUooG97cIGfdggUrUSyU= @@ -59,7 +53,5 @@ gopkg.in/asn1-ber.v1 v1.0.0-20170511165959-379148ca0225 h1:JBwmEvLfCqgPcIq8MjVMQ gopkg.in/asn1-ber.v1 v1.0.0-20170511165959-379148ca0225/go.mod h1:cuepJuh7vyXfUyUwEgHQXw849cJrilpS5NeIjOWESAw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v2 v2.2.1 h1:mUhvW9EsL+naU5Q3cakzfE91YhliOondGd6ZrsDBHQE= -gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=