MCPcopy Create free account
hub / github.com/netlify/cli / getCLIOptions

Function getCLIOptions

tests/integration/utils/mock-api.ts:189–204  ·  view source on GitHub ↗
({
  apiUrl,
  builder,
  env = {},
  extendEnv = true,
}: {
  apiUrl?: string
  builder?: { directory?: string } | undefined
  cwd?: string
  env?: CommonOptions<string>['env']
  extendEnv?: CommonOptions<string>['extendEnv']
})

Source from the content-addressed store, hash-verified

187 * @returns {import('execa').Options<string>}
188 */
189export const getCLIOptions = ({
190 apiUrl,
191 builder,
192 env = {},
193 extendEnv = true,
194}: {
195 apiUrl?: string
196 builder?: { directory?: string } | undefined
197 cwd?: string
198 env?: CommonOptions<string>['env']
199 extendEnv?: CommonOptions<string>['extendEnv']
200}): NodeOptions => ({
201 cwd: builder?.directory,
202 env: { ...getEnvironmentVariables({ apiUrl }), ...env },
203 extendEnv,
204})

Callers 15

callCliMethod · 0.70
envelope.test.tsFile · 0.50
deploy.test.tsFile · 0.50
link.test.tsFile · 0.50
dev.exec.test.tsFile · 0.50
env.test.tsFile · 0.50
create.test.tsFile · 0.50
status.test.tsFile · 0.50

Calls 1

getEnvironmentVariablesFunction · 0.70

Tested by 1