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

Method loadWithSpinner

packages/cli/src/util/openapi/openapi-cache.ts:137–144  ·  view source on GitHub ↗

* Load the OpenAPI spec with spinner UI. * Returns true if successful, false otherwise.

(forceRefresh = false)

Source from the content-addressed store, hash-verified

135 * Returns true if successful, false otherwise.
136 */
137 async loadWithSpinner(forceRefresh = false): Promise<boolean> {
138 output.spinner(
139 forceRefresh ? 'Refreshing API endpoints...' : 'Loading API endpoints...'
140 );
141 const success = await this.load(forceRefresh);
142 output.stopSpinner();
143 return success;
144 }
145
146 /**
147 * Get all available endpoints from the loaded spec, sorted by path then method.

Callers 4

promptEndpointSelectionFunction · 0.80
listEndpointsFunction · 0.80
runTagOperationFunction · 0.80

Calls 1

loadMethod · 0.95

Tested by

no test coverage detected