MCPcopy Index your code
hub / github.com/code-pushup/cli / createCommandContext

Function createCommandContext

packages/ci/src/lib/cli/context.ts:11–22  ·  view source on GitHub ↗
(
  { config, bin, directory, silent }: Settings,
  project: ProjectConfig | null | undefined,
)

Source from the content-addressed store, hash-verified

9};
10
11export function createCommandContext(
12 { config, bin, directory, silent }: Settings,
13 project: ProjectConfig | null | undefined,
14): CommandContext {
15 return {
16 bin: project?.bin ?? bin,
17 directory: project?.directory ?? directory,
18 silent,
19 config,
20 ...(project?.name && { project: project.name }),
21 };
22}

Callers 6

runInMonorepoModeFunction · 0.85
loadProjectEnvsFunction · 0.85
collectManyFunction · 0.85
compareManyFunction · 0.85
runOnProjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected