Skip to content

Add support for setting options and exporting environment variables #2

@rajatjain1997

Description

@rajatjain1997

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions