MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / registerUpgradeCommand

Function registerUpgradeCommand

src/cli/commands/upgrade.ts:690–717  ·  view source on GitHub ↗
(app: Argv)

Source from the content-addressed store, hash-verified

688// --- Yargs registration ---
689
690export function registerUpgradeCommand(app: Argv): void {
691 app.command(
692 'upgrade',
693 'Check for updates and upgrade XcodeBuildMCP',
694 (yargs) =>
695 yargs
696 .option('check', {
697 type: 'boolean',
698 default: false,
699 describe: 'Check for updates without upgrading',
700 })
701 .option('yes', {
702 type: 'boolean',
703 alias: 'y',
704 default: false,
705 describe: 'Skip confirmation and upgrade automatically',
706 }),
707 async (argv) => {
708 const exitCode = await runUpgradeCommand({
709 check: argv.check as boolean,
710 yes: argv.yes as boolean,
711 });
712 if (exitCode !== 0) {
713 process.exit(exitCode);
714 }
715 },
716 );
717}

Callers 2

buildYargsAppFunction · 0.90
runUpgradeCommandFunction · 0.85

Calls 1

runUpgradeCommandFunction · 0.70

Tested by

no test coverage detected