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

Function cliValue

packages/create-cli/src/lib/setup/prompts.ts:80–86  ·  view source on GitHub ↗
(key: string, cliArgs: CliArgs)

Source from the content-addressed store, hash-verified

78}
79
80function cliValue(key: string, cliArgs: CliArgs): PluginAnswer | undefined {
81 const value = cliArgs[key];
82 if (typeof value === 'string' || typeof value === 'boolean') {
83 return value;
84 }
85 return undefined;
86}
87
88async function runPrompt(
89 descriptor: PluginPromptDescriptor,

Callers 1

promptPluginOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected