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

Function createSetupCommand

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

Source from the content-addressed store, hash-verified

513}
514
515export function createSetupCommand(deps: InitDeps = {}): Command {
516 const validTargets = Object.keys(TARGETS) as AgentTarget[];
517 const defaultAgent: AgentTarget = 'claude';
518
519 return addSetupOptions(new Command('setup'), validTargets, defaultAgent)
520 .description(SETUP_DESCRIPTION)
521 .addHelpText('after', GLOBAL_OPTS_HINT)
522 .action(async (cmdOpts: SetupCmdOpts, command: Command) => {
523 await runSetupAction(cmdOpts, command, deps, defaultAgent);
524 });
525}
526
527/**
528 * Hidden, deprecated `init` alias → runs `setup`. Kept so existing scripts and

Callers 1

index.tsFile · 0.85

Calls 2

addSetupOptionsFunction · 0.85
runSetupActionFunction · 0.85

Tested by

no test coverage detected