From 439900940e79ccdcb1e09886d0e087814c863555 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 08:21:57 +0000 Subject: [PATCH] build(deps): bump github.com/urfave/cli/v3 from 3.0.0-alpha9.2 to 3.0.0-beta1 in the gomod group (#320) --- go.mod | 2 +- go.sum | 4 ++-- internal/cli/app.go | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 51238275..c8c20d93 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/stretchr/testify v1.10.0 github.com/tdewolff/minify/v2 v2.21.2 github.com/urfave/cli-docs/v3 v3.0.0-alpha6 - github.com/urfave/cli/v3 v3.0.0-alpha9.2 + github.com/urfave/cli/v3 v3.0.0-beta1 github.com/valyala/fasthttp v1.57.0 go.uber.org/automaxprocs v1.6.0 ) diff --git a/go.sum b/go.sum index 7f14e546..e5517e73 100644 --- a/go.sum +++ b/go.sum @@ -35,8 +35,8 @@ github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03 github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= github.com/urfave/cli-docs/v3 v3.0.0-alpha6 h1:w/l/N0xw1rO/aHRIGXJ0lDwwYFOzilup1qGvIytP3BI= github.com/urfave/cli-docs/v3 v3.0.0-alpha6/go.mod h1:p7Z4lg8FSTrPB9GTaNyTrK3ygffHZcK3w0cU2VE+mzU= -github.com/urfave/cli/v3 v3.0.0-alpha9.2 h1:CL8llQj3dGRLVQQzHxS+ZYRLanOuhyK1fXgLKD+qV+Y= -github.com/urfave/cli/v3 v3.0.0-alpha9.2/go.mod h1:FnIeEMYu+ko8zP1F9Ypr3xkZMIDqW3DR92yUtY39q1Y= +github.com/urfave/cli/v3 v3.0.0-beta1 h1:6DTaaUarcM0wX7qj5Hcvs+5Dm3dyUTBbEwIWAjcw9Zg= +github.com/urfave/cli/v3 v3.0.0-beta1/go.mod h1:FnIeEMYu+ko8zP1F9Ypr3xkZMIDqW3DR92yUtY39q1Y= github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= github.com/valyala/fasthttp v1.57.0 h1:Xw8SjWGEP/+wAAgyy5XTvgrWlOD1+TxbbvNADYCm1Tg= diff --git a/internal/cli/app.go b/internal/cli/app.go index ce89ff20..6942c6ca 100644 --- a/internal/cli/app.go +++ b/internal/cli/app.go @@ -60,7 +60,7 @@ func NewApp(appName string) *cli.Command { //nolint:funlen return &cli.Command{ Usage: appName, Suggest: true, - Before: func(ctx context.Context, c *cli.Command) error { + Before: func(ctx context.Context, c *cli.Command) (context.Context, error) { var ( logLevel, _ = logger.ParseLevel(c.String(logLevelFlag.Name)) // error ignored because the flag validates itself logFormat, _ = logger.ParseFormat(c.String(logFormatFlag.Name)) // --//-- @@ -68,12 +68,12 @@ func NewApp(appName string) *cli.Command { //nolint:funlen configured, err := logger.New(logLevel, logFormat) // create a new logger instance if err != nil { - return err + return ctx, err } *log = *configured // swap the "default" logger with customized - return nil + return ctx, nil }, Commands: []*cli.Command{ serve.NewCommand(log),