Function
run
(commands: Spec.Any, handlers: ReadonlyArray<LazyHandler>, options: { readonly version: string })
Source from the content-addressed store, hash-verified
| 56 | } |
| 57 | |
| 58 | export function run(commands: Spec.Any, handlers: ReadonlyArray<LazyHandler>, options: { readonly version: string }) { |
| 59 | return Command.run(provide(commands, handlers), options) as Effect.Effect<void, unknown, Command.Environment> |
| 60 | } |
| 61 | |
| 62 | function provide(node: Spec.Any, handlers: ReadonlyArray<LazyHandler>): ProvidedCommand { |
| 63 | const handler = handlers.find((handler) => handler.spec === node.spec) |
Callers
nothing calls this directly
Tested by
no test coverage detected