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

Output destination can be dynamically determined from the task #837

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

osdakira
Copy link

I want different tasks to output to different logs.
Different tasks should output to different logs.
Currently, we have to write :output for each task, which is not DRY.
Since :output can be written dynamically, we can change the output destination dynamically by passing tasks to it.

However, since lambda requires an argument, changing it will break the existing code.
On the other hand, proc works without arguments, so we can use tasks as arguments only for proc to maintain backward compatibility.

Copy link
Contributor

@bragamat bragamat left a comment

Choose a reason for hiding this comment

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

hey @osdakira thank you for the contribution! Can you update your PR with main's latest changes please ? 😄

@osdakira
Copy link
Author

Hi @bragamat
I have rebased the branch against your latest master branch. Please consider it if you like.

@bragamat
Copy link
Contributor

Hi @bragamat I have rebased the branch against your latest master branch. Please consider it if you like.

hey @benlangfeld can you review it or merge it please ? 😄

@benlangfeld
Copy link
Collaborator

Just needs a changelog entry.

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

3 participants