Function
provideContext
(
ctx: { directory: string; worktree: string; project: Project.Info; eventDirectory?: string },
fn: () => R,
)
Source from the content-addressed store, hash-verified
| 39 | }) |
| 40 | }, |
| 41 | async provideContext<R>( |
| 42 | ctx: { directory: string; worktree: string; project: Project.Info; eventDirectory?: string }, |
| 43 | fn: () => R, |
| 44 | ) { |
| 45 | return context.provide(ctx, async () => { |
| 46 | return fn() |
| 47 | }) |
| 48 | }, |
| 49 | get directory() { |
| 50 | return context.use().directory |
| 51 | }, |
Callers
nothing calls this directly
Tested by
no test coverage detected