MCPcopy Create free account
hub / github.com/vercel/vercel / fetchExampleList

Function fetchExampleList

packages/cli/src/commands/init/init.ts:94–101  ·  view source on GitHub ↗

* Fetch example list json

(client: Client)

Source from the content-addressed store, hash-verified

92 * Fetch example list json
93 */
94async function fetchExampleList(client: Client) {
95 output.spinner('Fetching examples');
96 const url = `${EXAMPLE_API}/v2/list.json`;
97
98 const body = await client.fetch<Example[]>(url);
99 output.stopSpinner();
100 return body;
101}
102
103/**
104 * Prompt user for choosing which example to init

Callers 1

initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected