MCPcopy
hub / github.com/stepci/stepci / checkOptionalEnvArrayFormat

Function checkOptionalEnvArrayFormat

src/lib/utils.ts:7–8  ·  view source on GitHub ↗
(envs?: string[])

Source from the content-addressed store, hash-verified

5
6// Check if all optional env variables match the required format
7export const checkOptionalEnvArrayFormat = (envs?: string[]) =>
8 envs?.length && !envs.every(checkEnvFormat)
9
10// Parse every entry in optional env array to a key value pair and return as object
11export function parseEnvArray(env?: string[]): WorkflowEnv {

Callers 1

index.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected