Skip to content

Commit c0b47ff

Browse files
authored
Bump urfave/cli and remove redundant code (#110)
1 parent ab24aeb commit c0b47ff

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

cmd/main_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"fmt"
77
"os"
88
"path/filepath"
9-
"regexp"
109
"strings"
1110
"testing"
1211

@@ -44,8 +43,6 @@ func TestCLIReferenceInSync(t *testing.T) {
4443
helpBytes = helpBytes[:n-1] // ignore NULL at end
4544
require.Nil(t, err)
4645
help := strings.TrimSpace(string(helpBytes))
47-
re := regexp.MustCompile(`(?m)\s+$`) // strip trailing whitespace
48-
help = re.ReplaceAllString(help, "\n")
4946
require.Truef(t, strings.Contains(readme, help),
5047
"Readme.md missing help text %s for %s.\nRun `%s` and paste the output in the Readme.",
5148
help, commandName, strings.Join(append([]string{"scip"}, args...), " "))

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require (
1212
github.com/smacker/go-tree-sitter v0.0.0-20220209044044-0d3022e933c3
1313
github.com/sourcegraph/sourcegraph/lib v0.0.0-20220511160847-5a43d3ea24eb
1414
github.com/stretchr/testify v1.7.1
15-
github.com/urfave/cli/v2 v2.17.1
15+
github.com/urfave/cli/v2 v2.19.1
1616
golang.org/x/tools v0.1.10
1717
google.golang.org/protobuf v1.28.0
1818
)

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,8 @@ github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljT
326326
github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY=
327327
github.com/urfave/cli/v2 v2.17.1 h1:UzjDEw2dJQUE3iRaiNQ1VrVFbyAtKGH3VdkMoHA58V0=
328328
github.com/urfave/cli/v2 v2.17.1/go.mod h1:1CNUng3PtjQMtRzJO4FMXBQvkGtuYRxxiR9xMa7jMwI=
329+
github.com/urfave/cli/v2 v2.19.1 h1:5Lt6gp6VugLvDmsyl80uqZlmCn/gyI9af8JvC2voqCI=
330+
github.com/urfave/cli/v2 v2.19.1/go.mod h1:1CNUng3PtjQMtRzJO4FMXBQvkGtuYRxxiR9xMa7jMwI=
329331
github.com/urfave/negroni v1.0.0/go.mod h1:Meg73S6kFm/4PpbYdq35yYWoCZ9mS/YSx+lKnmiohz4=
330332
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
331333
github.com/valyala/fasthttp v1.6.0/go.mod h1:FstJa9V+Pj9vQ7OJie2qMHdwemEDaDiSdBnvPM1Su9w=

0 commit comments

Comments
 (0)