(act func(ctx context.Context) error)
| 386 | } |
| 387 | |
| 388 | func (c *App) noRepositoryAction(act func(ctx context.Context) error) func(ctx *kingpin.ParseContext) error { |
| 389 | return func(kpc *kingpin.ParseContext) error { |
| 390 | return c.runAppWithContext(kpc.SelectedCommand, act) |
| 391 | } |
| 392 | } |
| 393 | |
| 394 | func (c *App) serverAction(sf *serverClientFlags, act func(ctx context.Context, cli *apiclient.KopiaAPIClient) error) func(ctx *kingpin.ParseContext) error { |
| 395 | return func(kpc *kingpin.ParseContext) error { |
nothing calls this directly
no test coverage detected