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

Function runGet

src/commands/project.ts:94–101  ·  view source on GitHub ↗
(opts: GetOptions, deps: ProjectDeps = {})

Source from the content-addressed store, hash-verified

92}
93
94export async function runGet(opts: GetOptions, deps: ProjectDeps = {}): Promise<CliProject> {
95 const out = makeOutput(opts.output, deps);
96 const client = makeClient(opts, deps);
97
98 const project = await client.get<CliProject>(`/projects/${encodeURIComponent(opts.projectId)}`);
99 out.print(project, data => renderProjectText(data as CliProject));
100 return project;
101}
102
103// ---------------------------------------------------------------------------
104// project create

Callers 1

createProjectCommandFunction · 0.70

Calls 4

renderProjectTextFunction · 0.85
printMethod · 0.80
makeOutputFunction · 0.70
makeClientFunction · 0.70

Tested by

no test coverage detected