(act func(ctx context.Context, rep repo.DirectRepository) error)
| 438 | } |
| 439 | |
| 440 | func (c *App) directRepositoryReadAction(act func(ctx context.Context, rep repo.DirectRepository) error) func(ctx *kingpin.ParseContext) error { |
| 441 | return c.repositoryAction(assertDirectRepository(func(ctx context.Context, rep repo.DirectRepository) error { |
| 442 | return act(ctx, rep) |
| 443 | }), repositoryAccessMode{}) |
| 444 | } |
| 445 | |
| 446 | func (c *App) repositoryReaderAction(act func(ctx context.Context, rep repo.Repository) error) func(ctx *kingpin.ParseContext) error { |
| 447 | return c.repositoryAction(func(ctx context.Context, rep repo.Repository) error { |
nothing calls this directly
no test coverage detected