MCPcopy Create free account
hub / github.com/TestSprite/testsprite-cli / createDeprecatedInitCommand

Function createDeprecatedInitCommand

src/commands/init.ts:533–543  ·  view source on GitHub ↗
(deps: InitDeps = {})

Source from the content-addressed store, hash-verified

531 * deprecation notice. (Setup consolidation.)
532 */
533export 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

Callers 1

index.tsFile · 0.85

Calls 3

addSetupOptionsFunction · 0.85
emitDeprecationNoticeFunction · 0.85
runSetupActionFunction · 0.85

Tested by

no test coverage detected