MCPcopy Index your code
hub / github.com/deepnote/deepnote / createIntegrationsPullAction

Function createIntegrationsPullAction

packages/cli/src/commands/integrations.ts:168–179  ·  view source on GitHub ↗
(program: Command)

Source from the content-addressed store, hash-verified

166 * Creates the action handler for the `integrations pull` subcommand.
167 */
168export function createIntegrationsPullAction(program: Command): (options: IntegrationsPullOptions) => Promise<void> {
169 return async options => {
170 try {
171 await pullIntegrations(options)
172 } catch (error) {
173 const message = error instanceof Error ? error.message : String(error)
174 const exitCode =
175 error instanceof MissingTokenError || error instanceof ApiError ? ExitCode.InvalidUsage : ExitCode.Error
176 program.error(chalk.red(message), { exitCode })
177 }
178 }
179}

Callers 2

registerCommandsFunction · 0.90

Calls 1

pullIntegrationsFunction · 0.85

Tested by

no test coverage detected