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

Function env

e2e/targets/cli.ts:17–21  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

15import type { Capability, Identity, Target } from "../src/target";
16
17const env = (key: string): string => {
18 const value = process.env[key];
19 if (!value) throw new Error(`cli target: ${key} not set — did cli.globalsetup run?`);
20 return value;
21};
22
23export const cliTarget = (): Target => {
24 const baseUrl = env("E2E_CLI_BASE_URL");

Callers 1

cliTargetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected