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

Get current workspace member in an env variable #285

Closed
roblabla opened this issue Sep 1, 2019 · 3 comments
Closed

Get current workspace member in an env variable #285

roblabla opened this issue Sep 1, 2019 · 3 comments
Assignees
Milestone

Comments

@roblabla
Copy link
Contributor

roblabla commented Sep 1, 2019

Features Description
It'd be nice to know which workspace member is being processed right now. The use-case I have would be to prevent certain tasks to run for some workspace members.

Describe the solution you'd like
Have a CARGO_MAKE_CURRENT_MEMBER environment variable that is set to the current workspace member project name.

Code Sample
N/A

@sagiegurari
Copy link
Owner

cool idea. pretty easy to implement but would take a bit due to network issues :)

@sagiegurari
Copy link
Owner

pushed an implementation for it in the 0.22.2 dev branch.
you will now have an env var: CARGO_MAKE_CRATE_CURRENT_WORKSPACE_MEMBER which will hold the member name (last path element)

@sagiegurari
Copy link
Owner

published in 0.22.2 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants