MCPcopy Index your code
hub / github.com/kopia/kopia / baseActionWithContext

Method baseActionWithContext

cli/app.go:506–510  ·  view source on GitHub ↗
(act func(ctx context.Context) error)

Source from the content-addressed store, hash-verified

504}
505
506func (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
512func (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 {

Callers 1

repositoryActionMethod · 0.95

Calls 1

runAppWithContextMethod · 0.95

Tested by

no test coverage detected