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

Function runnerArgsToEnv

packages/utils/src/lib/env.ts:62–69  ·  view source on GitHub ↗
(config: RunnerArgs)

Source from the content-addressed store, hash-verified

60const FORMAT_SEP = ',';
61
62export function runnerArgsToEnv(config: RunnerArgs): RunnerEnv {
63 return {
64 CP_PERSIST_OUTPUT_DIR: config.persist.outputDir,
65 CP_PERSIST_FILENAME: config.persist.filename,
66 CP_PERSIST_FORMAT: config.persist.format.join(FORMAT_SEP),
67 CP_PERSIST_SKIP_REPORTS: config.persist.skipReports.toString(),
68 };
69}
70
71export function runnerArgsFromEnv(env: Partial<RunnerEnv>): RunnerArgs {
72 const formats = env.CP_PERSIST_FORMAT?.split(FORMAT_SEP)

Callers 2

executeRunnerConfigFunction · 0.90
env.unit.test.tsFile · 0.85

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected