subprocess icon indicating copy to clipboard operation
subprocess copied to clipboard

Add support for setting options and exporting environment variables

Open rajatjain1997 opened this issue 3 years ago • 0 comments

Something close to the following syntax can be supported to set bash-like options and export environment variables:

{
    subprocess::set(pipefail);
    subprocess::export("var_name", "var_value");
    return (subprocess::command{"random_cmd"} | subprocess::command{"another_cmd"}).run();
}
// pipefail is automatically unset
// var_name is automatically unset

rajatjain1997 avatar Sep 12 '21 04:09 rajatjain1997