Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow CmdDependency set ENV #9

Open
cihga39871 opened this issue Jun 14, 2022 · 1 comment
Open

Allow CmdDependency set ENV #9

cihga39871 opened this issue Jun 14, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@cihga39871
Copy link
Owner

Copying ENV to ENV_ORIGIN when initializing Pipelines.

CmdDependency(; env = [
   prepend_path("PATH", "/bin"; delim = ":"),
   setenv("NEW_VAR", "value")
])

env is some modification of env, but not change env directly.

Modification syntax can be like Modulefile, such as prepend_path, setenv. Since setenv is defined in Julia, we can use another name.

Only pass new env when running Cmd. (setenv)

@cihga39871 cihga39871 added the enhancement New feature or request label Jun 14, 2022
@cihga39871
Copy link
Owner Author

cihga39871 commented Jul 28, 2022

run function can be wrapped in withenv.
Withenv is not thread-safe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant