(app: Argv)
| 1149 | } |
| 1150 | |
| 1151 | export function registerSetupCommand(app: Argv): void { |
| 1152 | app.command( |
| 1153 | 'setup', |
| 1154 | 'Interactively configure XcodeBuildMCP project defaults', |
| 1155 | (yargs) => |
| 1156 | yargs.option('format', { |
| 1157 | type: 'string', |
| 1158 | choices: ['yaml', 'mcp-json'] as const, |
| 1159 | default: 'yaml', |
| 1160 | describe: |
| 1161 | 'Output format: yaml writes .xcodebuildmcp/config.yaml, mcp-json prints an env-based MCP bootstrap config block', |
| 1162 | }), |
| 1163 | async (argv) => { |
| 1164 | await runSetupWizard({ outputFormat: argv.format as SetupOutputFormat }); |
| 1165 | }, |
| 1166 | ); |
| 1167 | } |
no test coverage detected