mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-14 06:57:35 +08:00
17 lines
286 B
Go
17 lines
286 B
Go
package cmd
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/urfave/cli/v3"
|
|
|
|
"github.com/mayswind/ezbookkeeping/pkg/core"
|
|
)
|
|
|
|
func bindAction(fn core.CliHandlerFunc) cli.ActionFunc {
|
|
return func(ctx context.Context, cmd *cli.Command) error {
|
|
c := core.WrapCilContext(ctx, cmd)
|
|
return fn(c)
|
|
}
|
|
}
|