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

Function resolveCompositionEntryArg

packages/cli/src/utils/renderArgs.ts:209–221  ·  view source on GitHub ↗
(
  raw: string | undefined,
  projectDir: string,
  stat: (path: string) => Stats,
)

Source from the content-addressed store, hash-verified

207 * process with a friendly error box on validation failure.
208 */
209export function resolveCompositionEntryArg(
210 raw: string | undefined,
211 projectDir: string,
212 stat: (path: string) => Stats,
213): string | undefined {
214 const result = parseCompositionEntryArg(raw, projectDir, stat);
215 if (!result.ok) {
216 const { title, message, hint } = compositionEntryErrorMessage(result.error);
217 errorBox(title, message, hint);
218 process.exit(1);
219 }
220 return result.value;
221}
222
223export type GifLoopParseResult =
224 | { ok: true; value: number | undefined }

Callers 1

runFunction · 0.85

Calls 3

parseCompositionEntryArgFunction · 0.85
errorBoxFunction · 0.85

Tested by

no test coverage detected