MCPcopy Create free account
hub / github.com/code-pushup/cli / combineArgs

Function combineArgs

packages/ci/src/lib/cli/exec.ts:89–101  ·  view source on GitHub ↗
(
  args: string[],
  context: CommandContext,
  options: { hasFormats?: boolean } | undefined,
)

Source from the content-addressed store, hash-verified

87}
88
89function combineArgs(
90 args: string[],
91 context: CommandContext,
92 options: { hasFormats?: boolean } | undefined,
93): string[] {
94 return [
95 ...(context.config ? [`--config=${context.config}`] : []),
96 ...args,
97 ...(options?.hasFormats === false
98 ? DEFAULT_PERSIST_FORMAT.map(format => `--persist.format=${format}`)
99 : []),
100 ];
101}

Callers 1

executeCliCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected