mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2025-12-12 16:10:03 +01:00
Update to urfave/cli v2 (#148)
This commit is contained in:
parent
23aa907644
commit
0775179987
4 changed files with 45 additions and 39 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue