MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / resolveVariablesArg

Function resolveVariablesArg

packages/cli/src/utils/variables.ts:129–140  ·  view source on GitHub ↗
(
  inline: string | undefined,
  filePath: string | undefined,
)

Source from the content-addressed store, hash-verified

127 * error box on any validation failure.
128 */
129export function resolveVariablesArg(
130 inline: string | undefined,
131 filePath: string | undefined,
132): Record<string, unknown> | undefined {
133 const result = parseVariablesArg(inline, filePath);
134 if (!result.ok) {
135 const { title, message } = variablesErrorMessage(result.error);
136 errorBox(title, message);
137 process.exit(1);
138 }
139 return result.value;
140}
141
142/**
143 * Validate `--variables` values against the project's top-level

Callers 4

runFunction · 0.85
runRenderFunction · 0.85

Calls 3

parseVariablesArgFunction · 0.85
variablesErrorMessageFunction · 0.85
errorBoxFunction · 0.85

Tested by

no test coverage detected