(deps: InitDeps = {})
| 531 | * deprecation notice. (Setup consolidation.) |
| 532 | */ |
| 533 | export function createDeprecatedInitCommand(deps: InitDeps = {}): Command { |
| 534 | const validTargets = Object.keys(TARGETS) as AgentTarget[]; |
| 535 | const defaultAgent: AgentTarget = 'claude'; |
| 536 | |
| 537 | return addSetupOptions(new Command('init'), validTargets, defaultAgent) |
| 538 | .description('(deprecated) alias for `setup`') |
| 539 | .action(async (cmdOpts: SetupCmdOpts, command: Command) => { |
| 540 | emitDeprecationNotice('init', 'setup', deps.stderr); |
| 541 | await runSetupAction(cmdOpts, command, deps, defaultAgent); |
| 542 | }); |
| 543 | } |
| 544 | |
| 545 | /** |
| 546 | * Entry for the hidden, deprecated `auth configure` alias. Per the setup |
no test coverage detected