Update to urfave/cli v2 (#148)

This commit is contained in:
Adrian Macneil 2020-08-07 18:09:03 -07:00 committed by GitHub
parent 23aa907644
commit 0775179987
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 45 additions and 39 deletions

View file

@ -7,7 +7,7 @@ import (
"testing"
"github.com/stretchr/testify/require"
"github.com/urfave/cli"
"github.com/urfave/cli/v2"
)
func testContext(t *testing.T, u *url.URL) *cli.Context {
@ -17,7 +17,7 @@ func testContext(t *testing.T, u *url.URL) *cli.Context {
app := NewApp()
flagset := flag.NewFlagSet(app.Name, flag.ContinueOnError)
for _, f := range app.Flags {
f.Apply(flagset)
_ = f.Apply(flagset)
}
return cli.NewContext(app, flagset, nil)