(
{ config, bin, directory, silent }: Settings,
project: ProjectConfig | null | undefined,
)
| 9 | }; |
| 10 | |
| 11 | export function createCommandContext( |
| 12 | { config, bin, directory, silent }: Settings, |
| 13 | project: ProjectConfig | null | undefined, |
| 14 | ): CommandContext { |
| 15 | return { |
| 16 | bin: project?.bin ?? bin, |
| 17 | directory: project?.directory ?? directory, |
| 18 | silent, |
| 19 | config, |
| 20 | ...(project?.name && { project: project.name }), |
| 21 | }; |
| 22 | } |
no outgoing calls
no test coverage detected