(act func(ctx context.Context) error)
| 504 | } |
| 505 | |
| 506 | func (c *App) baseActionWithContext(act func(ctx context.Context) error) func(ctx *kingpin.ParseContext) error { |
| 507 | return func(kpc *kingpin.ParseContext) error { |
| 508 | return c.runAppWithContext(kpc.SelectedCommand, act) |
| 509 | } |
| 510 | } |
| 511 | |
| 512 | func (c *App) repositoryAction(act func(ctx context.Context, rep repo.Repository) error, mode repositoryAccessMode) func(ctx *kingpin.ParseContext) error { |
| 513 | return c.baseActionWithContext(func(ctx context.Context) error { |
no test coverage detected