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

Make the feature a taskAction property (was a task property) #275

Merged
merged 1 commit into from Jan 16, 2019

Conversation

pior
Copy link
Member

@pior pior commented Jan 16, 2019

Why

The node task is providing an env-feature, like python or go.
The difference is that this task also includes a taskAction (npm) that should run once the env feature is activated.
It's an issue since the env-feature is activated after the task is complete.

How

  • make env-features a taskAction property and not a task property.

@pior pior requested a review from mlhamel as a code owner January 16, 2019 02:33
@pior pior merged commit a46b0a5 into master Jan 16, 2019
@pior pior deleted the task-action-feature branch January 16, 2019 23:29
featureSet = featureSet.With(task.Feature)
for _, action := range task.Actions {
if action.Feature() != nil {
featureSet = featureSet.With(*action.Feature())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't you want to break if you find a matching case ?

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

Successfully merging this pull request may close these issues.

None yet

2 participants