MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / readEnv

Function readEnv

scripts/validate-release-ref.ts:22–28  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

20};
21
22const readEnv = (name: string): string => {
23 const value = process.env[name];
24 if (!value) {
25 throw new Error(`Missing environment variable: ${name}`);
26 }
27 return value;
28};
29
30const appendGitHubFile = (path: string | undefined, line: string): void => {
31 if (!path || !line) return;

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected