File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03
3535github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 /go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8 =
3636github.com/urfave/cli-docs/v3 v3.0.0-alpha6 h1:w/l/N0xw1rO/aHRIGXJ0lDwwYFOzilup1qGvIytP3BI =
3737github.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 =
4040github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw =
4141github.com/valyala/bytebufferpool v1.0.0 /go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc =
4242github.com/valyala/fasthttp v1.57.0 h1:Xw8SjWGEP/+wAAgyy5XTvgrWlOD1+TxbbvNADYCm1Tg =
Original file line number Diff line number Diff 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 ),
You can’t perform that action at this time.
0 commit comments