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

Function resolveCommonOptions

src/commands/agent.ts:756–766  ·  view source on GitHub ↗
(command: Command)

Source from the content-addressed store, hash-verified

754// ---------------------------------------------------------------------------
755
756function resolveCommonOptions(command: Command): CommonOptions {
757 const globals = command.optsWithGlobals() as Partial<CommonOptions>;
758 return {
759 profile: globals.profile ?? 'default',
760 output: globals.output ?? 'text',
761 endpointUrl: globals.endpointUrl,
762 debug: globals.debug ?? false,
763 verbose: globals.verbose ?? false,
764 dryRun: globals.dryRun ?? false,
765 };
766}
767
768function makeOutput(mode: OutputMode, deps: AgentDeps): Output {
769 return new Output(mode, { stdout: deps.stdout, stderr: deps.stderr });

Callers 1

createAgentCommandFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected