Download automation/scripts/with-env.js from EnergyVenom/patchwise-agent-studio: direct link, hf CLI and curl.
- Browser
- Download file 455 Bytes
-
https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/automation/scripts/with-env.js
- Command line
-
hf download hf://spaces/EnergyVenom/patchwise-agent-studio/automation/scripts/with-env.js
-
curl -L -o with-env.js https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/automation/scripts/with-env.js
455 Bytes
| // Cross-platform `VAR=x node scripts/run.js` for npm scripts (POSIX inline env fails on Windows cmd/PowerShell). | |
| // Usage: node scripts/with-env.js RUN_TIERS=P1 [MORE=x ...] [playwright args...]. Leading KEY=VALUE args set env, the rest go to run.js. | |
| while (/^[A-Z_][A-Z0-9_]*=/.test(process.argv[2] || '')) { | |
| const [k, ...v] = process.argv.splice(2, 1)[0].split('='); | |
| process.env[k] = v.join('='); | |
| } | |
| require('./run.js'); | |