cedric05 / dothttp

dsl for http. https://marketplace.visualstudio.com/items?itemName=ShivaPrasanth.dothttp-code
https://docs.dothttp.dev/
Apache License 2.0
12 stars 0 forks source link

capture variable from executing system command or command line arguments #319

Closed cedric05 closed 3 weeks ago

cedric05 commented 3 weeks ago

running system command may lead to hazardous state if details are shared via malicious person.

its better to guard and still give fiasibility.

running system commands, only when insecure flag is set is probably better

cedric05 commented 3 weeks ago

environment file has special keys like * and headers.

idea is to leverage or adding new key $commands.

this key contains a dict, where in when similar property needs to replace, commad will execute and stdout will be passed