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

Add decorator to mark a class method as a task generator #330

Closed
wants to merge 10 commits into from
Closed

Add decorator to mark a class method as a task generator #330

wants to merge 10 commits into from

Conversation

zspiderx
Copy link

@zspiderx zspiderx commented Aug 24, 2019

  1. @TaskGenerator.doit_task can be used to mark a class method as a task generator
  2. If a class is a subclass of TaskGenerator, doit_tasks can be used on the class to return a dict of all the task generator.

Enable decorator for a class method.
@coveralls
Copy link

coveralls commented Aug 24, 2019

Coverage Status

Coverage increased (+0.0006%) to 99.738% when pulling 1c00563 on zspiderx:master into 660d3a2 on pydoit:master.

@schettino72
Copy link
Member

schettino72 commented Aug 25, 2019

cool. doit was designed to be easy to create helpers like this...
but these kind of helpers do not belong to doit core.

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

Successfully merging this pull request may close these issues.

None yet

3 participants