bktide
Version:
Command-line interface for Buildkite CI/CD workflows with rich shell completions (Fish, Bash, Zsh) and Alfred workflow integration for macOS power users
14 lines • 455 B
JavaScript
export function parseEnvEntries(entries) {
const result = {};
for (const entry of entries) {
const eqIndex = entry.indexOf('=');
if (eqIndex <= 0) {
throw new Error(`Invalid --env entry: "${entry}". Use KEY=VAL.`);
}
const key = entry.substring(0, eqIndex);
const value = entry.substring(eqIndex + 1);
result[key] = value;
}
return result;
}
//# sourceMappingURL=envParser.js.map