Skip to content

Commit 4399009

Browse files
build(deps): bump github.com/urfave/cli/v3 from 3.0.0-alpha9.2 to 3.0.0-beta1 in the gomod group (#320)
1 parent 100120b commit 4399009

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
github.com/stretchr/testify v1.10.0
77
github.com/tdewolff/minify/v2 v2.21.2
88
github.com/urfave/cli-docs/v3 v3.0.0-alpha6
9-
github.com/urfave/cli/v3 v3.0.0-alpha9.2
9+
github.com/urfave/cli/v3 v3.0.0-beta1
1010
github.com/valyala/fasthttp v1.57.0
1111
go.uber.org/automaxprocs v1.6.0
1212
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03
3535
github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8=
3636
github.com/urfave/cli-docs/v3 v3.0.0-alpha6 h1:w/l/N0xw1rO/aHRIGXJ0lDwwYFOzilup1qGvIytP3BI=
3737
github.com/urfave/cli-docs/v3 v3.0.0-alpha6/go.mod h1:p7Z4lg8FSTrPB9GTaNyTrK3ygffHZcK3w0cU2VE+mzU=
38-
github.com/urfave/cli/v3 v3.0.0-alpha9.2 h1:CL8llQj3dGRLVQQzHxS+ZYRLanOuhyK1fXgLKD+qV+Y=
39-
github.com/urfave/cli/v3 v3.0.0-alpha9.2/go.mod h1:FnIeEMYu+ko8zP1F9Ypr3xkZMIDqW3DR92yUtY39q1Y=
38+
github.com/urfave/cli/v3 v3.0.0-beta1 h1:6DTaaUarcM0wX7qj5Hcvs+5Dm3dyUTBbEwIWAjcw9Zg=
39+
github.com/urfave/cli/v3 v3.0.0-beta1/go.mod h1:FnIeEMYu+ko8zP1F9Ypr3xkZMIDqW3DR92yUtY39q1Y=
4040
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
4141
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
4242
github.com/valyala/fasthttp v1.57.0 h1:Xw8SjWGEP/+wAAgyy5XTvgrWlOD1+TxbbvNADYCm1Tg=

internal/cli/app.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,20 @@ func NewApp(appName string) *cli.Command { //nolint:funlen
6060
return &cli.Command{
6161
Usage: appName,
6262
Suggest: true,
63-
Before: func(ctx context.Context, c *cli.Command) error {
63+
Before: func(ctx context.Context, c *cli.Command) (context.Context, error) {
6464
var (
6565
logLevel, _ = logger.ParseLevel(c.String(logLevelFlag.Name)) // error ignored because the flag validates itself
6666
logFormat, _ = logger.ParseFormat(c.String(logFormatFlag.Name)) // --//--
6767
)
6868

6969
configured, err := logger.New(logLevel, logFormat) // create a new logger instance
7070
if err != nil {
71-
return err
71+
return ctx, err
7272
}
7373

7474
*log = *configured // swap the "default" logger with customized
7575

76-
return nil
76+
return ctx, nil
7777
},
7878
Commands: []*cli.Command{
7979
serve.NewCommand(log),

0 commit comments

Comments
 (0)