(catalog: ToolCatalog, runtimeConfig: ResolvedRuntimeConfig = baseRuntimeConfig)
| 69 | }; |
| 70 | |
| 71 | function createApp(catalog: ToolCatalog, runtimeConfig: ResolvedRuntimeConfig = baseRuntimeConfig) { |
| 72 | const app = yargs() |
| 73 | .scriptName('xcodebuildmcp') |
| 74 | .exitProcess(false) |
| 75 | .fail((message, error) => { |
| 76 | throw error ?? new Error(message); |
| 77 | }); |
| 78 | |
| 79 | registerToolCommands(app, catalog, { |
| 80 | workspaceRoot: '/repo', |
| 81 | runtimeConfig, |
| 82 | cliExposedWorkflowIds: ['simulator'], |
| 83 | workflowNames: ['simulator'], |
| 84 | }); |
| 85 | |
| 86 | return app; |
| 87 | } |
| 88 | |
| 89 | function mockInvokeDirectThroughHandler() { |
| 90 | return vi |
no test coverage detected